From: Alex Katebi Date: 2008-08-08T02:44:03+09:00 Subject: 1.9 Ruby C Extension ??? ------=_Part_40305_20032095.1218131149492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, When writing ruby extensions in C, how can I save C pointers into ruby variables Bignum or Fixnum? The only Macros available are INT2FIX, INT2NUM & FIX2INT and NUM2INT. I can not save a pinter value that is 32 bits long. example: static VALUE round_trip(VALUE self, VALUE vptr) { void* ptr = NUM2INT(vptr); return INT2NUM(ptr); } ------=_Part_40305_20032095.1218131149492--