Hi Tim!

If you are using %include to include your header you can try %import instead http://www.swig.org/Doc2.0/Preprocessor.html#Preprocessor_nn3 It will import type information but won't generate any wrapping unless you manually declare one.


On Sat, Nov 16, 2013 at 3:29 AM, Tim Keitt <tkeitt@utexas.edu> wrote:
On Thu, Nov 14, 2013 at 5:05 PM, Tim Keitt <tkeitt@utexas.edu> wrote:
Sorry if this is a faq. I've not found much searching. I have a C header with lots of

typedef enum { ... } enum_type;

declarations, and swig is giving me a parsing error at the first line number where this occurs. Can swig handle that construct? How hard would it be to modify the swig code to handle it?

I had a helpful reply about the enum issue, which is not the problem.

There's a bare macro just above the enum and I am guessing that is the problem. Is the usual strategy to run it through the preprocessor or tell swig to ignore these? How would one go about that?

THK 

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Swig-user mailing list
Swig-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user




--
Sincerely, Alexander