summaryrefslogtreecommitdiff
path: root/Examples/lua
Commit message (Collapse)AuthorAgeFilesLines
* Improve #include guard macrosOlly Betts2022-07-191-2/+2
| | | | | | | Avoid using reserved identifiers such as `_DOHINT_H` (fixes #1989), fix cases where the name doesn't match the filename, and make the naming more consistent and less likely to collide with include guards in other headers.
* Fix typos in docs and commentsOlly Betts2022-02-273-6/+6
|
* Fix comment and testsuite check message typosOlly Betts2022-02-231-1/+1
|
* Fix typosDimitris Apostolou2022-02-102-4/+4
|
* Fix testcase -Wstringop-truncation warning in gcc11William S Fulton2021-11-121-1/+1
|
* Lua example fix for newer osxWilliam S Fulton2021-02-201-0/+2
|
* Misc. typosluz.paz2018-05-1714-18/+18
| | | found via `codespell` and `grep`
* Examples update to support C++17: exception specification throw removalWilliam S Fulton2018-05-042-21/+12
|
* Remove differences from lua example compared to Python versionWilliam S Fulton2017-02-061-1/+1
|
* Warning fixes for gcc-7William S Fulton2017-02-061-0/+7
| | | | warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Wdeprecated]
* Fix examples for lua 5.3William S Fulton2016-05-011-4/+5
|
* Correct to Unix CR/LFWilliam S Fulton2015-09-051-33/+33
|
* Remove use of preinst-swig scriptWilliam S Fulton2015-08-2117-56/+111
| | | | | | | | | | | | | Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
* Fix line endings in lua exampleWilliam S Fulton2014-11-271-15/+15
|
* Remove bogus ; after } in examplesOlly Betts2014-11-072-5/+5
|
* Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic ↵William S Fulton2014-05-246-22/+24
| | | | -Wreturn-type
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-1120-75/+89
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* More cleaning up of the class examplesOlly Betts2014-05-051-5/+5
|
* Remove random extra assignment in example codeOlly Betts2014-05-051-1/+0
|
* Fix typosOlly Betts2014-04-2911-49/+49
|
* Whitespace cleanup of Example MakefilesKarl Wette2014-04-168-10/+10
|
* Lua documentation tweaks and make nspace example more concise.William S Fulton2014-03-043-9/+9
|
* Fixing documentation. Adding an example.Artem Serebriyskiy2014-03-025-0/+99
|
* Further cleaning up of class examplesOlly Betts2014-02-242-16/+10
|
* Fix assorted comment and documentation typosOlly Betts2014-02-231-4/+4
|
* Fix Lua examples for running under Lua 5.2William S Fulton2014-02-226-11/+26
| | | | | Includes cherry picking parts of https://github.com/v-for-vandal/swig/commit/ce2760f77e9ab04ce276244ee4329aeba7ddea54
* Fix gcc -Waddress warning in variables examplesWilliam S Fulton2013-10-181-1/+1
|
* Lua examples now run during 'make check' and makefile tidyup.William S Fulton2013-04-1916-83/+98
|
* Convert to unix fileformatWilliam S Fulton2013-01-1218-992/+992
|
* SWIG license change - The Examples and Lib move to a very permissive license ↵William S Fulton2010-02-271-1/+0
| | | | | | in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [Lua] Added contract support for requiring that unsigned numbers are >=0Mark Gossage2009-01-131-1/+6
| | | | | | | Rewrote much of Examples/Lua/embed3. Added a lot of to the Lua documentation. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11061 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Lua example warning removal fixes for vc++William S Fulton2008-06-214-7/+26
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [Lua] Removed generation of _wrap_delete_XXXXX (wrappered destructor) which ↵Mark Gossage2008-04-308-3/+246
| | | | | | | | | was unused and causing warning with g++ -Wall. Removed other unused warning in typemaps.i and other places. Added Examples/lua/embed3, and run tests a few test cases. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* add missing headerWilliam S Fulton2008-04-061-0/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* add missing headerWilliam S Fulton2008-04-051-0/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [lua] Added a typemap DISOWN for SWIGTYPE* and SWIGTYPE[], and support for ↵Mark Gossage2008-03-279-2/+315
| | | | | | %delobject feature. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [lua] added %luacode feature, documentation & examplesMark Gossage2008-03-175-0/+160
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [lua] updated docs for exceptionsMark Gossage2008-03-0612-108/+557
| | | | | | | added new examples (exception,embed2) update typmaps git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Visual C++ 8 warning fixesWilliam S Fulton2008-02-025-5/+15
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* gcc-4.2 warning fixesWilliam S Fulton2007-12-092-0/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [lua] Fix a bug in the class hierachy code, where the methods were not ↵Mark Gossage2007-12-0410-0/+322
| | | | | | | | | propagated, if the name ordering was in a certain order. Added new example programs (dual, embed) and runtime tests for test-suite. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [lua] Fix Examples/lua to pass SRCS for C tests rather than CXXSRCS.Olly Betts2007-10-283-9/+9
| | | | | | | | The code as it was happened to work on x86, but broke on x86_64 (and probably any other platforms which require -fPIC). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove a stray ";"Olly Betts2007-10-281-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10066 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [lua] extras compability for lua 5.1, fixed a static link name conflictMark Gossage2007-07-109-14/+14
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fixed issues with C++ classes and hierachies across multiple source files. Mark Gossage2007-05-0212-0/+273
| | | | | | | | | Fixed imports test case & added run test. Added Examples/imports. Added typename for raw lua_State* Added documentation on native functions. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Added a lua specific carrays.i which adds the operator[] support.Mark Gossage2007-01-221-2/+2
| | | | | | modified the main code to make it not emit all the class member functions & accessors git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* making setting immutables an errorMark Gossage2006-12-211-7/+12
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove cvsignore files: this is stored on svn:igonre property nowJohn Lenz2006-12-038-48/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* added support for native methods & member function pointers.Mark Gossage2006-10-245-1/+80
| | | | | | | fixed test cases arrays_dimensionless & cpp_basic. Added new example (functor). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* added support for passing function pointers as well as native lua objectMark Gossage2006-09-117-0/+184
| | | | | | | | into wrappered function added example funcptr3 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9264 626c5289-ae23-0410-ae9c-e8d60b6d4f22