From 02298dd5b704e9a87b907e1e7df27decccfd0620 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 12 Aug 2018 21:52:15 +0800 Subject: *update --- src/lua/luaopen_jin.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/lua/luaopen_jin.cpp') diff --git a/src/lua/luaopen_jin.cpp b/src/lua/luaopen_jin.cpp index ad5b193..4697ec2 100644 --- a/src/lua/luaopen_jin.cpp +++ b/src/lua/luaopen_jin.cpp @@ -44,7 +44,7 @@ namespace lua #endif return 1; } - + static int l_revision(lua_State* L) { luax_pushnumber(L, REVISION); @@ -52,29 +52,29 @@ namespace lua } static const luaL_Reg f[] = { - {"version", l_getversion}, - {"revision", l_revision}, - {"author", l_getAuthor}, - {"os", l_getOS}, - {0, 0} + { "version", l_getversion }, + { "revision", l_revision }, + { "author", l_getAuthor }, + { "os", l_getOS }, + { 0, 0 } }; // submodules static const luaL_Reg mods[] = { - {"core", luaopen_core}, - {"event", luaopen_event}, - {"graphics", luaopen_graphics}, - {"time", luaopen_time}, - {"mouse", luaopen_mouse}, - {"keyboard", luaopen_keyboard}, - {"filesystem", luaopen_filesystem}, - {"net", luaopen_net}, - {"audio", luaopen_audio}, - {"joypad", luaopen_joypad}, - {"math", luaopen_math}, - {"thread", luaopen_thread}, - {"bit", luaopen_bit}, - {0, 0} + { "core", luaopen_core }, + { "event", luaopen_event }, + { "graphics", luaopen_graphics }, + { "time", luaopen_time }, + { "mouse", luaopen_mouse }, + { "keyboard", luaopen_keyboard }, + { "filesystem", luaopen_filesystem }, + { "net", luaopen_net }, + { "audio", luaopen_audio }, + { "joypad", luaopen_joypad }, + { "math", luaopen_math }, + { "thread", luaopen_thread }, + { "bit", luaopen_bit }, + { 0, 0 } }; int luaopen_jin(lua_State* L) -- cgit v1.1-26-g67d0