luaevent.c: Drops global registration of core in favor of reducing global pollution
authorThomas Harning Jr <harningt@gmail.com>
Mon, 15 Apr 2013 15:07:00 +0000 (15 11:07 -0400)
committerThomas Harning Jr <harningt@gmail.com>
Mon, 15 Apr 2013 15:07:00 +0000 (15 11:07 -0400)
src/luaevent.c

index 9918da3..3c268ea 100644 (file)
@@ -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 */