diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-05 13:22:04 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-05 13:22:04 +0200 |
commit | b0e4bb27b2f5cb2b54cb615a3100ef8aa4474600 (patch) | |
tree | f280ce0ff0eadc173138e4629171efeef3f01322 /tests | |
parent | 08be1164cbaa7ec69bd229e138d3ad86b169f68f (diff) | |
download | crawler-b0e4bb27b2f5cb2b54cb615a3100ef8aa4474600.tar.gz crawler-b0e4bb27b2f5cb2b54cb615a3100ef8aa4474600.tar.bz2 |
..
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tolua/libtest1/GNUmakefile | 3 | ||||
-rwxr-xr-x | tests/tolua/libtest1/TestMod.cpp | 2 | ||||
-rwxr-xr-x | tests/tolua/test1.cpp | 3 |
3 files changed, 7 insertions, 1 deletions
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 <stdexcept> #include <vector> +#include <iostream> using namespace std; @@ -15,6 +16,8 @@ int main( int /* argc */, char *argv[] ) LuaVM luaVm; + cout << luaVm.handle( ) << endl; + vector<string> modules; modules.push_back( "./libtest1/mod_test.so" ); ModuleLoader<Base> loader( modules, (void *)&luaVm ); |