From 34947d066b994c2ef9121a83497da344982d28e2 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 17 May 2018 18:04:41 +0800 Subject: v0.1.0 --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') 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; } -- cgit v1.1-26-g67d0