Use names defined in lualib.h for library registration.

This commit is contained in:
Mike Pall
2011-02-02 02:38:59 +01:00
parent 1505d6ffde
commit 2c8945d3e7
11 changed files with 17 additions and 19 deletions

View File

@@ -614,8 +614,8 @@ LUALIB_API int luaopen_base(lua_State *L)
settabV(L, lj_tab_setstr(L, env, lj_str_newlit(L, "_G")), env);
lua_pushliteral(L, LUA_VERSION); /* top-3. */
newproxy_weaktable(L); /* top-2. */
LJ_LIB_REG_(L, "_G", base);
LJ_LIB_REG(L, coroutine);
LJ_LIB_REG(L, "_G", base);
LJ_LIB_REG(L, LUA_COLIBNAME, coroutine);
return 2;
}