From: Lyes Amazouz Date: 2008-11-15T02:47:12+09:00 Subject: Re: mapping C long unsigned integer with swig for ruby ------=_Part_23006_1827666.1226685015793 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/13/08, Nobuyoshi Nakada wrote: > > Hi, > > At Fri, 14 Nov 2008 01:10:37 +0900, > Lyes Amazouz wrote in [ruby-talk:320166]: > > 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. > > Maybe: > > > /* Convert from Python --> C */ > > %typemap(in) int { > $1 = ULL2NUM($input); > > } > > > > /* Convert from C --> Python */ > > %typemap(out) int { > $result = NUM2ULL($1); > > -- > Nobu Nakada Ok thank you, I will try that -- =========== | Lyes Amazouz | USTHB, Algiers =========== ------=_Part_23006_1827666.1226685015793--