I have made some changes to the wxLua binding generator so that the
*.i interface files are now more C++ like. More work needs to be done
to remove the remaining special constructs so that a nearly unmodified
C++ header may be used as is, but this is a start.

This affects only people who maintain their own interface files for
their own libraries.  I apologize for the inconvenience, but this
should pay off in simplifying maintenance for everybody in the future.

No functionality of wxLua should have been affected.

>From the 2.8.12.3 section of the changelog; here is are the items that
will need to be updated in your interface files :

 * CONVERT *.i BINDINGS TO BE VALID(ish) C++ CODE!
   If you have written you own, you will have to make these changes.
   - Find/Replace "%if"              -> "#if"
   - Find/Replace "%endif"           -> "#endif"
   - Find/Replace "%include"         -> "#include"
   - Find/Replace "%define"          -> "#define"      (still only for numbers)
   - Find/Replace "%define_string"   -> "#define_string"
   - Find/Replace "%define_wxstring" -> "#define_wxstring"
   - Find/Replace "%define_object"   -> "#define_object"
   - Find/Replace "%define_pointer"  -> "#define_pointer"
   - Find/Replace "%define_event"    -> "%wxEventType" (not always #defines,
                                                        special to wx)
   - Find/Replace "%public"          -> "public"    (not currently used)
   - Find/Replace "%protected"       -> "protected" (not currently used)
   - Find/Replace "%private"         -> "private"   (not currently used)
   - Find/Replace "%typedef"         -> "typedef"
   - Change %class ClassName ... %endclass  to
        class ClassName [: public BaseClassName [, public BaseClassName2]]
        {
        ... // Note that {} braces must be on separate lines.
        };
   - Change %struct StructName ... %endstruct as per class change.
   - Change %enum [EnumName] ... %endenum to
        enum EnumName
        {
        ... // Note that {} braces must be on separate lines.
        };


Regards,
    John

------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to