From: Daniel Berger Date: 2005-05-31T21:20:22+09:00 Subject: Re: rb_struct_new nornagon wrote: > Hi. I'm documenting a C extension, and I'm having a little bit of > trouble figuring out what rb_struct_new does. I would check the return > value of that particular function, but I am currently running windows > and the extension is linux-only. > > Could anyone point me in the right direction? > > Thanks. > -- > - nornagon It creates a new struct, one that you've defined previously with rb_struct_define(). So, something like this: VALUE rbMyStruct = rb_struct_define("MyStruct","foo","bar",0); VALUE rbVal = rb_struct_new(rbMyStruct, ...); I'm not sure why you think this is a Linux only function. It works perfectly fine on Windows. Regards, Dan