From: Thomas Harning Jr Date: Mon, 15 Apr 2013 15:07:00 +0000 (-0400) Subject: luaevent.c: Drops global registration of core in favor of reducing global pollution X-Git-Tag: v0.4.4~6 X-Git-Url: https://repo.or.cz/w/luaevent.git/commitdiff_plain/ff0f492710fce590ade16eea729b943c3886898d luaevent.c: Drops global registration of core in favor of reducing global pollution --- 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 */