From 2c8945d3e734bb42faa60ef0b97a6115a2b099f7 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 2 Feb 2011 02:38:59 +0100 Subject: Use names defined in lualib.h for library registration. --- src/lib_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib_base.c') diff --git a/src/lib_base.c b/src/lib_base.c index 47530f93..1a9a6df2 100644 --- a/src/lib_base.c +++ b/src/lib_base.c @@ -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; } -- cgit v1.2.3-55-g6feb