aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/time/je_lua_time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/time/je_lua_time.cpp')
-rw-r--r--src/lua/modules/time/je_lua_time.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/lua/modules/time/je_lua_time.cpp b/src/lua/modules/time/je_lua_time.cpp
index e565eab..c42fc0f 100644
--- a/src/lua/modules/time/je_lua_time.cpp
+++ b/src/lua/modules/time/je_lua_time.cpp
@@ -49,22 +49,21 @@ namespace JinEngine
context.current = getSecond();
return 0;
}
-
- LUA_IMPLEMENT const luaL_Reg f[] = {
- { "second", l_sec },
- { "sleep", l_sleep },
- { "newTimer", l_newTimer },
- { "step", l_step },
- { "getDelta", l_getDelta },
- { 0, 0 },
- };
LUA_PORT int luaopen_Timer(lua_State* L);
LUA_EXPORT int luaopen_time(lua_State* L)
{
luaopen_Timer(L);
-
+
+ luaL_Reg f[] = {
+ { "second", l_sec },
+ { "sleep", l_sleep },
+ { "newTimer", l_newTimer },
+ { "step", l_step },
+ { "getDelta", l_getDelta },
+ { 0, 0 },
+ };
luax_newlib(L, f);
return 1;
}