Add Swig_obligatory_macros which must be called by each
target language to define SWIG_VERSION correctly
in the generated code, as well as the language specific
macro SWIGXXX where XXX is the target language name.
Drop the #ifdef SWIGXXX that was previously generated -
I can't see the point of this and if users are defining
this macro somehow, then users will need to change this
Closes#1050
Ensure that SWIG_VERSION is defined both at SWIG-time and in the
generated C/C++ wrapper code (it was only defined in the wrapper
for some target languages previously).
SWIGGO and SWIGJAVASCRIPT are now defined in the generated wrappers
to match behaviour for all other target languages.
Stop defining SWIGVERSION in the wrapper. This only happened as a
side-effect of how SWIG_VERSION was defined but was never documented and
is redundant.
The new testcase also checks that SWIG is defined at SWIG-time but not
in the generated wrapper, and that exactly one of a list of
target-language specific macros is defined.
Fixes#1050
Since Lua 5.3 the "%c" format character in lua_pushfstring will produce
the string "<\XXX>" (XXX being a decimal code sequence) when
given unprintable characters.
Use lua_pushlstring instead to reproduce the old behavior.
* 'class_p1' of github.com:v-for-vandal/swig:
Fixing registerClass. No more wrap: unnecessary attributes
Fixed registerMethod to work like registerVariable
Switched to Swig_name_* functions
Return MIN_OPT_LEVEL for elua
add nspace_extend test case
updated documentation following comd options renaming
Options in alphabetical order
Members renaming
target_name -> lua_name
Fixing cmd options, again
Fixing segfault
Removed class_parent_nspace
Fixes to module options
Rename methods to make it clear what 'symbols table' they operate on.
Small documenation fixes
Updating Lua documentation
Eliminating namespaces_hash and using symbols table instead
Attempt to catch unreproducable bug from Travis CI build
Small bugfixes
Bugfixes for eLua. eLua emulation mode
Add compatibility option for old-style inheritance
Add support for C-style enums in C mode. And tests.
Style fixes. Comments fixes. Fixing cmd options. etc
Some fixes for elua
Attempt to fix unreproducable bug (from Travis CI build)
Fixes for examples. Wrapped keywords into guardian in keyword_rename test
Remove some typos
Remove some obsolete code
Manually beautifying luarun.swg
Code beautifier
Valuewrapper test
Removing obsolete debug code
Bugfixes
A few bugfixes
Some class bases iteration improvements
Fixes for elua
Bugfixes
Bugfixes. CMD args handling. Code cleanup
Bugfixes
Preparations before pull request - part 1
More changes. Mostly to the would-be class library
Fixing issuse with v2-compatible static function names
Add pointer guard
Add runtime test
Bugfixes
nspace.i example is working
Initial implementation - everything compiles but might not work
added long long support
changed typemaps to use SWIG_ConvertPtr rather than SWIG_MustGetPointer
started spliting lua.swg into smaller parts to make it neater
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9450 626c5289-ae23-0410-ae9c-e8d60b6d4f22