aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/event/je_lua_event.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-12 22:23:35 +0800
committerchai <chaifix@163.com>2018-11-12 22:23:35 +0800
commitc7e59fb376453e5abad8c862b52eb0f4c7ba829b (patch)
treecaefc559396525f6521ad8ff8c4f7f3f035942c2 /src/lua/modules/event/je_lua_event.cpp
parentaf62f267a24091a16cbafe844d59cdbd4e78f5b1 (diff)
*修改结构
Diffstat (limited to 'src/lua/modules/event/je_lua_event.cpp')
-rw-r--r--src/lua/modules/event/je_lua_event.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/modules/event/je_lua_event.cpp b/src/lua/modules/event/je_lua_event.cpp
index d09108a..82ba385 100644
--- a/src/lua/modules/event/je_lua_event.cpp
+++ b/src/lua/modules/event/je_lua_event.cpp
@@ -111,18 +111,18 @@ namespace JinEngine
}
return 1;
}
-
- LUA_IMPLEMENT const luaL_Reg f[] = {
- { "poll", l_event_poll },
- { 0, 0 }
- };
/**
* load event module
*/
LUA_EXPORT int luaopen_event(lua_State* L)
{
+ luaL_Reg f[] = {
+ { "poll", l_event_poll },
+ { 0, 0 }
+ };
luax_newlib(L, f);
+
return 1;
}