diff options
author | chai <chaifix@163.com> | 2018-11-12 22:23:35 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-12 22:23:35 +0800 |
commit | c7e59fb376453e5abad8c862b52eb0f4c7ba829b (patch) | |
tree | caefc559396525f6521ad8ff8c4f7f3f035942c2 /src/lua/modules/filesystem/je_lua_filesystem.cpp | |
parent | af62f267a24091a16cbafe844d59cdbd4e78f5b1 (diff) |
*修改结构
Diffstat (limited to 'src/lua/modules/filesystem/je_lua_filesystem.cpp')
-rw-r--r-- | src/lua/modules/filesystem/je_lua_filesystem.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lua/modules/filesystem/je_lua_filesystem.cpp b/src/lua/modules/filesystem/je_lua_filesystem.cpp index 3c3c12c..6245ba8 100644 --- a/src/lua/modules/filesystem/je_lua_filesystem.cpp +++ b/src/lua/modules/filesystem/je_lua_filesystem.cpp @@ -120,20 +120,20 @@ namespace JinEngine return 2; } - LUA_IMPLEMENT const luaL_Reg f[] = { - { "init", l_init }, - { "mount", l_mount }, - { "isDirectory", l_isDir }, - { "isFile", l_isFile }, - { "exist", l_exist }, - { "read", l_read }, - { 0, 0 } - }; - LUA_EXPORT int luaopen_filesystem(lua_State* L) { + luaL_Reg f[] = { + { "init", l_init }, + { "mount", l_mount }, + { "isDirectory", l_isDir }, + { "isFile", l_isFile }, + { "exist", l_exist }, + { "read", l_read }, + { 0, 0 } + }; luax_newlib(L, f); luax_registersearcher(L, loader, 1); + return 0; } |