From b0e4bb27b2f5cb2b54cb615a3100ef8aa4474600 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 5 Oct 2014 13:22:04 +0200 Subject: .. --- tests/tolua/libtest1/GNUmakefile | 3 ++- tests/tolua/libtest1/TestMod.cpp | 2 ++ tests/tolua/test1.cpp | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/tolua/libtest1/GNUmakefile b/tests/tolua/libtest1/GNUmakefile index b53a1b2..a00cbca 100755 --- a/tests/tolua/libtest1/GNUmakefile +++ b/tests/tolua/libtest1/GNUmakefile @@ -17,7 +17,8 @@ INCLUDE_LDFLAGS = \ INCLUDE_LIBS = \ -lcrawler \ - -ltolua + -ltolua \ + -llua DYNAMIC_MODULE = \ mod_test.so diff --git a/tests/tolua/libtest1/TestMod.cpp b/tests/tolua/libtest1/TestMod.cpp index 912d652..afef87a 100755 --- a/tests/tolua/libtest1/TestMod.cpp +++ b/tests/tolua/libtest1/TestMod.cpp @@ -16,6 +16,8 @@ static void initModule( void *user_data ) { LuaVM *luaVm = (LuaVM *)user_data; + cout << luaVm->handle( ) << endl; + tolua_TestMod_open( luaVm->handle( ) ); } diff --git a/tests/tolua/test1.cpp b/tests/tolua/test1.cpp index fe2801a..a2bff4d 100755 --- a/tests/tolua/test1.cpp +++ b/tests/tolua/test1.cpp @@ -5,6 +5,7 @@ #include #include +#include using namespace std; @@ -15,6 +16,8 @@ int main( int /* argc */, char *argv[] ) LuaVM luaVm; + cout << luaVm.handle( ) << endl; + vector modules; modules.push_back( "./libtest1/mod_test.so" ); ModuleLoader loader( modules, (void *)&luaVm ); -- cgit v1.2.3-54-g00ecf