From: Lyes Amazouz Date: 2008-11-14T01:10:37+09:00 Subject: mapping C long unsigned integer with swig for ruby ------=_Part_6481_2061980.1226592773567 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 -- =========== | Lyes Amazouz | USTHB, Algiers =========== ------=_Part_6481_2061980.1226592773567--