'lua_mainthread' replaced by new preregistered value LUA_RIDX_MAINTHREAD

This commit is contained in:
Roberto Ierusalimschy
2009-09-17 15:04:21 -03:00
parent 0e45ffb8e4
commit 67cae2854c
4 changed files with 25 additions and 14 deletions

7
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 2.88 2009/08/07 16:17:41 roberto Exp roberto $
** $Id: lapi.c,v 2.89 2009/08/31 14:26:28 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -102,11 +102,6 @@ LUA_API int lua_checkstack (lua_State *L, int size) {
}
LUA_API lua_State *lua_mainthread (lua_State *L) {
return G(L)->mainthread;
}
LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
int i;
if (from == to) return;