summaryrefslogtreecommitdiff
path: root/tests/tolua/test1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tolua/test1.cpp')
-rwxr-xr-xtests/tolua/test1.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tolua/test1.cpp b/tests/tolua/test1.cpp
index a3810e2..4ee26ff 100755
--- a/tests/tolua/test1.cpp
+++ b/tests/tolua/test1.cpp
@@ -17,7 +17,11 @@ int main( int /* argc */, char *argv[] )
LuaVM luaVm;
vector<string> modules;
+#ifndef _WIN32
modules.push_back( "./libtest1/mod_test.so" );
+#else
+ modules.push_back( ".\\libtest1\\mod_test.dll" );
+#endif
ModuleLoader<Base> loader( modules, CLOSE_DEFERRED, (void *)&luaVm );
luaVm.loadSource( argv[1] );