Merge branch 'class_p1_fixes' of github.com:v-for-vandal/swig into v-for-vandal-class_p1_fixes
Lua changes tweaks. * 'class_p1_fixes' of github.com:v-for-vandal/swig: Removing all TODO:REMOVE Fixing enums __Static -> SwigStatig, __Module -> SwigModule Setattr -> SetFlag Backward compatibility -> Compatibility Note Fixing documentation. Adding an example.
This commit is contained in:
commit
8b75b90b2f
10 changed files with 180 additions and 158 deletions
|
|
@ -19,8 +19,8 @@ assert(enums.globalinstance3==30)
|
|||
assert(enums.AnonEnum1==0)
|
||||
assert(enums.AnonEnum2==100)
|
||||
|
||||
-- In C enums from struct are exported without prefixing with struct name
|
||||
-- In C++ they are prefixed.
|
||||
-- In C enums from struct are exported into global namespace (without prefixing with struct name)
|
||||
-- In C++ they are prefixed (as compatibility thing).
|
||||
-- We are emulating xor :)
|
||||
assert(enums.BAR1 ~= enums.Foo_BAR1) -- It is either C style, or C++ style, but not both
|
||||
assert((enums.BAR1 ~= nil ) or (enums.Foo_BAR1 ~= nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue