summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-05 13:22:04 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-05 13:22:04 +0200
commitb0e4bb27b2f5cb2b54cb615a3100ef8aa4474600 (patch)
treef280ce0ff0eadc173138e4629171efeef3f01322 /tests
parent08be1164cbaa7ec69bd229e138d3ad86b169f68f (diff)
downloadcrawler-b0e4bb27b2f5cb2b54cb615a3100ef8aa4474600.tar.gz
crawler-b0e4bb27b2f5cb2b54cb615a3100ef8aa4474600.tar.bz2
..
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tolua/libtest1/GNUmakefile3
-rwxr-xr-xtests/tolua/libtest1/TestMod.cpp2
-rwxr-xr-xtests/tolua/test1.cpp3
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 );