From ff0f492710fce590ade16eea729b943c3886898d Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Mon, 15 Apr 2013 11:07:00 -0400 Subject: [PATCH] luaevent.c: Drops global registration of core in favor of reducing global pollution --- src/luaevent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/luaevent.c b/src/luaevent.c index 9918da3..3c268ea 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -184,7 +184,8 @@ int luaopen_luaevent_core(lua_State* L) { lua_setfield(L, -2, "__gc"); lua_pop(L, 1); - luaL_register(L, "luaevent.core", funcs); + lua_newtable(L); + luaL_register(L, NULL, funcs); setNamedIntegers(L, consts); /* Register external items */ -- 2.11.4.GIT