diff options
author | chai <chaifix@163.com> | 2018-11-11 20:18:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-11 20:18:26 +0800 |
commit | 7c2f33bdf37de7acf9b0728a115377081344db1c (patch) | |
tree | cd82766dd4d1d84229ae610e69225bb48b3001b9 /src/lua/modules/time/je_lua_timer.cpp | |
parent | e92caa97329016d012b46b9d37e1b2c3b613a8f2 (diff) |
*格式化
Diffstat (limited to 'src/lua/modules/time/je_lua_timer.cpp')
-rw-r--r-- | src/lua/modules/time/je_lua_timer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<Timer>& 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<Timer>(); } - +*/ 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 { // //}, ); |