From 7a20483f06624e82feb129c9e4c8fa13881a6a9f Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 12:23:12 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=20bind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/filesystem/je_lua_filesystem.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lua/modules/filesystem/je_lua_filesystem.cpp') diff --git a/src/lua/modules/filesystem/je_lua_filesystem.cpp b/src/lua/modules/filesystem/je_lua_filesystem.cpp index 84b9c01..8bc3a69 100644 --- a/src/lua/modules/filesystem/je_lua_filesystem.cpp +++ b/src/lua/modules/filesystem/je_lua_filesystem.cpp @@ -1,6 +1,5 @@ #include "common/je_lua_common.h" -#include "LuaJIT/lua.hpp" -#include "libraries/luax/luax.h" +#include "common/je_lua.h" #include "libjin/jin.h" #include @@ -123,7 +122,7 @@ namespace JinEngine LUA_EXPORT int luaopen_filesystem(lua_State* L) { - luaL_Reg f[] = { + luaL_Reg methods[] = { { "init", l_init }, { "mount", l_mount }, { "isDirectory", l_isDir }, @@ -132,7 +131,7 @@ namespace JinEngine { "read", l_read }, { 0, 0 } }; - luax_newlib(L, f); + luax_newlib(L, methods); luax_registersearcher(L, loader, 1); return 0; -- cgit v1.1-26-g67d0