mirror of https://github.com/swig/swig.git
- Add Lua examples - Add and fix unused Lua tests - Add lua_module_global complementary test of lua_no_module_global - Add Lua test-suite runme files Enable friends_nested and minherit inline test code for Lua via the SWIGLUA guards. |
||
|---|---|---|
| .. | ||
| Makefile | ||
| README | ||
| bar.h | ||
| bar.i | ||
| base.h | ||
| base.i | ||
| foo.h | ||
| foo.i | ||
| runme.lua | ||
| spam.h | ||
| spam.i | ||
README
This example tests the %import directive and working with multiple modules.
Use 'lua runme.lua' to run a test.
Overview:
---------
The example defines 4 different extension modules--each wrapping
a separate C++ class.
base.i - Base class
foo.i - Foo class derived from Base
bar.i - Bar class derived from Base
spam.i - Spam class derived from Bar
Each module uses %import to refer to another module. For
example, the 'foo.i' module uses '%import base.i' to get
definitions for its base class.