If I have a file full of statements like:
#define AD_ENT_LINE       1

Is there any way to expose those to the overlying Perl code via Inline without 
a lot of data duplication?  

I'm working on a wrapper for the openDWG toolkit, which has several of these 
entity codes defined in its header files.  With swig, I had simply copied 
these into a constants.i file and included those (but now I see its dirty 
trick in the xs code:).  

Ideally, they could be retrieved directly from the headers (but maybe I should 
just write a function to return them all as a hash?)

Thanks,
Eric
-- 
"I will not reason and compare, my business is to create...
The road of excess leads to the palace of wisdom."
                                        --William Blake

Reply via email to