you could use something like this:


struct yourdatatype
{

};



yourdatatype val;

rb_protect(...,(VALUE)&yourdatatype, ... )

-- 
Posted via http://www.ruby-forum.com/.