aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/time/je_lua_time.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-13 08:27:26 +0800
committerchai <chaifix@163.com>2018-11-13 08:27:26 +0800
commit75792c15480d3d99b2ba7e79e143e4b569b22611 (patch)
tree61e3abc45326c67d348e08400da11f60dff18fa3 /src/lua/modules/time/je_lua_time.cpp
parentc7e59fb376453e5abad8c862b52eb0f4c7ba829b (diff)
*修改lua ref
Diffstat (limited to 'src/lua/modules/time/je_lua_time.cpp')
-rw-r--r--src/lua/modules/time/je_lua_time.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lua/modules/time/je_lua_time.cpp b/src/lua/modules/time/je_lua_time.cpp
index c42fc0f..4546337 100644
--- a/src/lua/modules/time/je_lua_time.cpp
+++ b/src/lua/modules/time/je_lua_time.cpp
@@ -50,12 +50,9 @@ namespace JinEngine
return 0;
}
- LUA_PORT int luaopen_Timer(lua_State* L);
-
LUA_EXPORT int luaopen_time(lua_State* L)
{
- luaopen_Timer(L);
-
+ luax_newclass(L, luaopen_Timer);
luaL_Reg f[] = {
{ "second", l_sec },
{ "sleep", l_sleep },