aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-17 18:04:41 +0800
committerchai <chaifix@163.com>2018-05-17 18:04:41 +0800
commit34947d066b994c2ef9121a83497da344982d28e2 (patch)
tree41a65f6973a9082dafcc081a8a46de99b556370b /src/main.cpp
parentd45064be602c3becb046d86913ea8013774b0079 (diff)
v0.1.0
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index fb77f6d..7417591 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -7,7 +7,6 @@
#include "libs/luax/luax.h"
#include "lua/luaopen_jin.h"
-using namespace jin::lua;
#include "fs/filesystem.h"
@@ -23,11 +22,11 @@ int main(int argc, char* argv[])
* open jin module, jin module is on the top
* of stack
*/
- luaopen_jin(L);
+ jin::lua::luaopen_jin(L);
// add args to global field
luax_newtable(L);
- for (int i = 0; i < argc; i++)
+ for (int i = 0; i < argc; ++i)
luax_setraw_string(L, -2, i + 1, argv[i]);
luax_setfield(L, -2, "_argv");
@@ -45,7 +44,7 @@ int main(int argc, char* argv[])
luax_setfield_string(L, "_dir", buffer);
// boot
- boot(L);
+ jin::lua::boot(L);
return 0;
}