#1036 c++ macros defined to boolean don't register

closed-fixed
5
2009-09-02
2009-08-27
Vedran Pogacnik
No

When wrapping c++ for use in Lua, macros of type '#define FOO true' aren't initialized by swig. Therefore Lua doesn't register them and <module-name>.FOO is 'nil'.

Discussion

  • William Fulton
    William Fulton
    2009-09-02

    Now fixed in svn. true and false are recognised and any constant expression using true and false are now wrapped (C++ only of course), eg:

    #define FOO true
    #define BAR true && FOO

    This is a general issue applicable to all languages.

     
  • William Fulton
    William Fulton
    2009-09-02

    • labels: 776076 --> code generation (general)
    • assigned_to: mgossage --> wsfulton
    • status: open --> closed-fixed