diff options
Diffstat (limited to 'tests/tolua/libtest1/TestMod.cpp')
-rwxr-xr-x | tests/tolua/libtest1/TestMod.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/tolua/libtest1/TestMod.cpp b/tests/tolua/libtest1/TestMod.cpp new file mode 100755 index 0000000..491001c --- /dev/null +++ b/tests/tolua/libtest1/TestMod.cpp @@ -0,0 +1,23 @@ +#include "TestMod.hpp" +#include "tolua.h" +#include "TestModLua.hpp" + +#include <iostream> + +using namespace std; + +void Derived::hello( ) +{ + cout << "hello" << endl; +} + +static void initModule( ) +{ +// tolua_TestMod_open( 0 /* m_lua, where from? */ ); +} + +static void destroyModule( ) +{ +} + +REGISTER_MODULE( "testmod", &initModule, &destroyModule, Base, Derived ) |