A
Aureliano Buendia
Hi,
I am trying to wrap this function is C ro Ruby using SWIG:
typedef unsigned long uInt32
someFunction(uInt32 someArray[])
The array is simply some input. Calling the wrapped function in Ruby:
Wrapper.someFunction([1, 2, 3])
produces this error:
...in method 'someFunction', argument 1 of type 'uInt32 []' (TypeError)
Does this have anything to do with the argument being defined as 'uInt32
someArray[]' and not 'uInt32 *someArray'?
I am trying to wrap this function is C ro Ruby using SWIG:
typedef unsigned long uInt32
someFunction(uInt32 someArray[])
The array is simply some input. Calling the wrapped function in Ruby:
Wrapper.someFunction([1, 2, 3])
produces this error:
...in method 'someFunction', argument 1 of type 'uInt32 []' (TypeError)
Does this have anything to do with the argument being defined as 'uInt32
someArray[]' and not 'uInt32 *someArray'?