From 75792c15480d3d99b2ba7e79e143e4b569b22611 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 13 Nov 2018 08:27:26 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=20ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/time/je_lua_time.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lua/modules/time/je_lua_time.cpp') 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 }, -- cgit v1.1-26-g67d0