From 7c2f33bdf37de7acf9b0728a115377081344db1c Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 11 Nov 2018 20:18:26 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/time/je_lua_timer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lua/modules/time/je_lua_timer.cpp') diff --git a/src/lua/modules/time/je_lua_timer.cpp b/src/lua/modules/time/je_lua_timer.cpp index c28aafe..e57c666 100644 --- a/src/lua/modules/time/je_lua_timer.cpp +++ b/src/lua/modules/time/je_lua_timer.cpp @@ -6,7 +6,7 @@ namespace JinEngine { namespace Lua { - +/* typedef Shared& TimerRef; LUA_IMPLEMENT inline TimerRef checkTimer(lua_State* L) @@ -14,13 +14,13 @@ namespace JinEngine Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_TIME_TIMER); return proxy->getShared(); } - +*/ LUA_IMPLEMENT int l_every(lua_State* L) { - //TimerRef ref = checkTimer(L); - //Timer* timer = ref.getObject(); + //TimerRef shared = checkTimer(L); + //Timer* timer = shared.getObject(); //int n = luax_checkinteger(L, 1); - //int ref = luax_ref(L, 2); + //int shared = luax_ref(L, 2); //timer->every(n, [](void* data)->void { // //}, ); -- cgit v1.1-26-g67d0