#428 #define's inside of enums

None
closed
parsing (147)
5
2013-04-18
2004-04-22
Josh Cherry
No

SWIG (1.3.21, c++ mode) chokes on code like

typedef enum {
eZero = 0
#define ONE 1
} EFoo;

(but is fine if the #define is moved outside of the
enum). Yet this seems to be perfectly legal C++.

Discussion

  • Olly Betts

    Olly Betts - 2010-09-27

    Still present in SWIG trunk post 2.0.0 (r12229). Manifests in C mode as well as C++ mode.

     
  • William Fulton

    William Fulton - 2013-04-18
    • Group: -->
     
  • William Fulton

    William Fulton - 2013-04-18

    Fixed for swig-2.0.10, see patch #333 mentioned above.

     
  • William Fulton

    William Fulton - 2013-04-18
    • status: open --> closed
    • assigned_to: William Fulton
     

Log in to post a comment.