diff options
author | chai <chaifix@163.com> | 2018-12-09 18:26:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-09 18:26:17 +0800 |
commit | b1dfdae7a071407ef5e2d56f2203f96e6ba6068d (patch) | |
tree | b26bbed65fd0074178066de89bb197bb2176305b /src/lua/je_lua_jin.cpp | |
parent | 7069a62a7984feff85a37f60c67e2a7624241841 (diff) |
*misc
Diffstat (limited to 'src/lua/je_lua_jin.cpp')
-rw-r--r-- | src/lua/je_lua_jin.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/lua/je_lua_jin.cpp b/src/lua/je_lua_jin.cpp index e3af169..8d79415 100644 --- a/src/lua/je_lua_jin.cpp +++ b/src/lua/je_lua_jin.cpp @@ -39,23 +39,21 @@ namespace JinEngine return 1; } - LUA_IMPLEMENT const luax_Str s[] = { - { "version", VERSION }, - { "author", AUTHOR }, - { "codename", CODE_NAME }, - { 0, 0 } - }; - - LUA_IMPLEMENT const luax_Num n[] = { - { "revision", REVISION }, - { 0, 0 } - }; - // Register jin module, keep it on the top of stack. LUA_EXPORT void open(lua_State* L) { luax_globaltable(L, MODULE_NAME); + const luax_Str s[] = { + { "version", VERSION }, + { "author", AUTHOR }, + { "codename", CODE_NAME }, + { 0, 0 } + }; + const luax_Num n[] = { + { "revision", REVISION }, + { 0, 0 } + }; // Register values. luax_setfieldstrings(L, s); luax_setfieldnumbers(L, n); |