Menu

#1087 "Syntax error in input" when parsing #define within an enum.

closed-duplicate
nobody
5
2010-09-27
2010-04-23
Sam Ellis
No

An error is produced when processing an enum that contains a #define. I tried swig1.3.38 on Linux and swig 1.3.40 on Windows. A trivial example is attached:

C:\swigwin-1.3.40>swig -java -module test H:\test.c
H:\test.c(2): Error: Syntax error in input(1).

There is no problem when the #define is placed outside of the enum.

Discussion

  • Sam Ellis

    Sam Ellis - 2010-04-23

    Example showing a #define within an enum.

     
  • Olly Betts

    Olly Betts - 2010-09-27

    Duplicate of SF#940318.

     
  • Olly Betts

    Olly Betts - 2010-09-27
    • status: open --> closed-duplicate
     

Log in to post a comment.