L
Lyes Amazouz
[Note: parts of this message were removed to make it a legal post.]
Hi everyone
I want to now how can I indicate to swig to consider a n unsigned long long
function input/output parameter as a ruby BigNum object.
with python, we use the typemap to do the conversion.: for example
/* Convert from Python --> C */
%typemap(in) int {
$1 = PyInt_AsLong($input);
}
/* Convert from C --> Python */
%typemap(out) int {
$result = PyInt_FromLong($1);
is there something equivalent with ruby
thank you
Hi everyone
I want to now how can I indicate to swig to consider a n unsigned long long
function input/output parameter as a ruby BigNum object.
with python, we use the typemap to do the conversion.: for example
/* Convert from Python --> C */
%typemap(in) int {
$1 = PyInt_AsLong($input);
}
/* Convert from C --> Python */
%typemap(out) int {
$result = PyInt_FromLong($1);
is there something equivalent with ruby
thank you