Artem Serebriyskiy
be6723df1e
Return MIN_OPT_LEVEL for elua
2014-02-23 16:30:23 +04:00
Artem Serebriyskiy
14452cad03
Attempt to catch unreproducable bug from Travis CI build
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
0c6263a0c2
Small bugfixes
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
705beb6753
Bugfixes for eLua. eLua emulation mode
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
0ee724ca80
Add compatibility option for old-style inheritance
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
4b0ed73317
Style fixes. Comments fixes. Fixing cmd options. etc
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
ce2760f77e
Fixes for examples. Wrapped keywords into guardian in keyword_rename test
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
02c4a8e39c
Remove some obsolete code
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
eb7c0f011b
Manually beautifying luarun.swg
2014-02-19 13:34:49 +04:00
Artem Serebriyskiy
f1fb2cc295
Bugfixes
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
dcbcac42b7
A few bugfixes
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
afd269f9b6
Some class bases iteration improvements
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
c775e66048
Fixes for elua
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
9d6cd75c73
Bugfixes
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
da0510376c
Bugfixes. CMD args handling. Code cleanup
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
aa1b8298ca
Preparations before pull request - part 1
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
63a26c6dbe
More changes. Mostly to the would-be class library
2014-02-19 13:34:48 +04:00
Artem Serebriyskiy
295788c8a0
nspace.i example is working
2014-02-19 13:34:47 +04:00
Artem Serebriyskiy
1c5a0f8b9c
Initial implementation - everything compiles but might not work
2014-02-19 13:34:47 +04:00
jleveque
c7ef593549
Bug fix (typo - "wchar" instead of "wchar_t")
2013-12-12 16:53:23 +13:00
jleveque
8be8b62d83
Fix compile warning on Linux
2013-12-12 15:50:10 +13:00
Atri
1a7f731d60
Lua: Fix void return for non-void functions
...
Commit #c3f3880d caused the functions
SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L,
swig_lua_namespace* ns)
and
SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L,
swig_lua_namespace* ns)
to return void when int returns were expected resulting in the build
failures for plplot's lua bindings for example. This commit fixes the
issue.
Closes #92
2013-10-12 17:51:49 +01:00
William S Fulton
bcb7aee022
Merge branch 'master' into gsoc2009-matevz
...
Conflicts:
Examples/Makefile.in
Examples/guile/Makefile.in
Lib/php/php.swg
Makefile.in
Source/CParse/parser.y
configure.ac
2013-10-10 07:26:09 +01:00
Artem Serebriyskiy
c3f3880d0c
Lua static member access improvements.
...
1) Static members and static functions inside class can be accessed as ModuleName.ClassName.FunctionName (MemberName respectively). Old way aka ModuleName.ClassName_FunctionName still works.
2) Same goes for enums inside classes: ModuleName.ClassName.EnumValue1 etc.
3) More 'runme' tests for lua + modifications to existing tests to test new changes.
Code is loosely based upon python implemenation of the same thing.
Patch #62 .
2013-09-12 21:32:26 +01:00
Miles Bader
c746ae7a0f
Include Lua error locus in SWIG error messages
...
This is standard information in Lua error messages, and makes it much
easier to find bugs.
2013-08-30 06:56:33 +01:00
Miles Bader
663c41e248
Add Lua runtime helper functions for error-handling
...
Add two helper functions to the Lua runtime, "SWIG_Lua_pusherrstring"
and "SWIG_Lua_pushferrstring".
These are like the standard Lua functions lua_pushstring and
lua_pushfstring respectively, except that the strings are prefixed
with the location of the innermost Lua call-point (as generated by
luaL_where).
2013-08-30 06:56:33 +01:00
William S Fulton
e805d5f925
Merge branch 'master' into gsoc2009-matevz
...
parser.y still to be fixed up
Conflicts:
Doc/Devel/engineering.html
Examples/Makefile.in
Lib/allegrocl/allegrocl.swg
Lib/csharp/csharp.swg
Lib/csharp/enums.swg
Lib/csharp/enumsimple.swg
Lib/csharp/enumtypesafe.swg
Lib/java/java.swg
Lib/python/pydocs.swg
Lib/r/rtype.swg
Source/Include/swigwarn.h
Source/Modules/octave.cxx
Source/Modules/python.cxx
Source/Modules/ruby.cxx
Source/Swig/scanner.c
Source/Swig/stype.c
Source/Swig/swig.h
configure.ac
2013-01-28 07:01:37 +00:00
William S Fulton
341a5366dd
Add rvalue reference typemaps
2013-01-24 20:27:28 +00:00
Olly Betts
5b2f38101f
Fix comment typos in Lua typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-28 18:32:24 +00:00
William S Fulton
e62dc28f16
Clean up Lua std::string typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 07:07:00 +00:00
William S Fulton
12a9671440
std::string typemap modifications so they can be used with %apply for other string classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-26 06:33:49 +00:00
William S Fulton
49b6c39d98
Lua fix for -external-runtime
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 23:05:07 +00:00
Olly Betts
a6d005f78b
Fix another comment typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-09 07:28:46 +00:00
Olly Betts
e3b79abcdc
Fix comment typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-09 07:23:07 +00:00
William S Fulton
60b9635c79
Fix uninitialised variable in Lua SWIGTYPE **OUTPUT typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-25 05:53:14 +00:00
William S Fulton
dc7818db81
Add missing Lua factory.i for patch #3219676
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13014 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-24 18:37:53 +00:00
William S Fulton
ac688f9ccb
Apply patch #3517435 from Miles Bader - prefer to use Lua_pushglobaltable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12985 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-14 20:37:39 +00:00
William S Fulton
5c8e5542ef
Apply #3219676 from Shane Liesegang which adds: - support for %factory - a __tostring method - a __disown method
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-13 18:28:37 +00:00
Olly Betts
e3eb54594e
[Lua] Add support for Lua 5.2 (patch SF#3514593 from Miles Bader)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-05 04:29:11 +00:00
William S Fulton
6c80f765ca
Slight change to the Lua macro names to separate ELUA and ELUAC from normal Lua - patch from Raman Gopalan
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-01-16 22:50:07 +00:00
William S Fulton
91d22324e7
Add support for eLua including options for Lua Tiny RAM (LTR)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-09-16 22:53:35 +00:00
William S Fulton
932f47a845
SF patch #3394339 from Torsten Landschoff - new option -nomoduleglobal to disable installing the module table into the global namespace. Require call also returns the module table instead of a string
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-08-22 19:27:56 +00:00
William S Fulton
d68b786b19
Cosmetic improvements in generated code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 23:25:52 +00:00
William S Fulton
2c2e5fa9b5
Add some missing signed char and unsigned char Lua typemaps in the typemaps.i library
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-19 16:12:12 +00:00
William S Fulton
f10c7868fd
Fix SWIG_lua_isnilstring multiply defined when using multiple modules and wrapping strings. Patch from 'Number Cruncher'.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-10 19:21:07 +00:00
Olly Betts
1fe29bae87
Remove superfluous semicolons
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-21 07:37:40 +00:00
William S Fulton
2535297efb
minor formatting change
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-23 06:44:47 +00:00
William S Fulton
9dd763d4d3
Fix #2887254 and #2946032 - SWIG_Lua_typename using wrong stack index.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-09 22:02:09 +00:00
William S Fulton
662084aa06
Lua - Fix char pointers, wchar_t pointers and char arrays so that nil can be passed as a valid value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-02 19:48:20 +00:00
William S Fulton
bdb136d611
Change typemap matching rules for the default type (SWIGTYPE) to follow template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 18:26:37 +00:00