aboutsummaryrefslogtreecommitdiff
path: root/src/lua/luaopen_jin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/luaopen_jin.cpp')
-rw-r--r--src/lua/luaopen_jin.cpp34
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