From: Martin DeMello Date: 2009-06-12T22:57:21+09:00 Subject: Re: wrapping a C struct[] constant On Fri, Jun 12, 2009 at 7:01 PM, Jason Roelofs wrote: > > Even using FFI, you'll need to define the wrapping between C constant to > Ruby constant, and using Ruby's API, you'll be define_const-ing every one of > those, then putting them into an array. Just define them in the Ruby > yourself, there isn't a faster way to do it. I was afraid of that :( The docs are a bit on the sketchy side too. I guess some sort of code generation would be the way to go then (swig seems like overkill). Will give cgenerator a look. martin