aboutsummaryrefslogtreecommitdiff
path: root/src/lua/luaopen_jin.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-12 21:52:15 +0800
committerchai <chaifix@163.com>2018-08-12 21:52:15 +0800
commit02298dd5b704e9a87b907e1e7df27decccfd0620 (patch)
treec55b3b82940e044e3c748dd9107956b61b02d95d /src/lua/luaopen_jin.cpp
parent7b34bd98bb00796febd5351b9d2e75fd2c247432 (diff)
*update
Diffstat (limited to 'src/lua/luaopen_jin.cpp')
-rw-r--r--src/lua/luaopen_jin.cpp40
1 files changed, 20 insertions, 20 deletions
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)