diff options
author | chai <chaifix@163.com> | 2018-08-18 17:18:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-18 17:18:47 +0800 |
commit | 398966630f99329021d4335d819326e27a9d49df (patch) | |
tree | 72868e26389f784f4abfb24110ffbd2385d67753 /src/lua/luaopen_jin.cpp | |
parent | 2fb51a71e53b4fc7bd4058d3a5a6f39fa81c345a (diff) |
*update
Diffstat (limited to 'src/lua/luaopen_jin.cpp')
-rw-r--r-- | src/lua/luaopen_jin.cpp | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/src/lua/luaopen_jin.cpp b/src/lua/luaopen_jin.cpp index 4697ec2..a271a77 100644 --- a/src/lua/luaopen_jin.cpp +++ b/src/lua/luaopen_jin.cpp @@ -61,20 +61,20 @@ namespace lua // submodules static const luaL_Reg mods[] = { - { "core", luaopen_core }, - { "event", luaopen_event }, - { "graphics", luaopen_graphics }, - { "time", luaopen_time }, - { "mouse", luaopen_mouse }, - { "keyboard", luaopen_keyboard }, + { "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 } + { "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) @@ -88,7 +88,6 @@ namespace lua // register submodules for (int i = 0; mods[i].name; ++i) { - // open submodules mods[i].func(L); luax_setfield(L, -2, mods[i].name); } @@ -96,13 +95,10 @@ namespace lua return 1; } - /** - * boot jin - */ void boot(lua_State* L) { jin::embed::boot(L); } -} -}
\ No newline at end of file +} // lua +} // jin
\ No newline at end of file |