mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
'debug.joinupvalue' -> 'debug.upvaluejoin'
This commit is contained in:
parent
ce444bff33
commit
ac899a6307
6
ldblib.c
6
ldblib.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ldblib.c,v 1.114 2009/11/05 17:26:00 roberto Exp roberto $
|
** $Id: ldblib.c,v 1.115 2009/11/09 19:10:48 roberto Exp roberto $
|
||||||
** Interface from Lua to its debug API
|
** Interface from Lua to its debug API
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -217,7 +217,7 @@ static int db_upvalueid (lua_State *L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int db_joinupvalue (lua_State *L) {
|
static int db_upvaluejoin (lua_State *L) {
|
||||||
int n1 = checkupval(L, 1, 2);
|
int n1 = checkupval(L, 1, 2);
|
||||||
int n2 = checkupval(L, 3, 4);
|
int n2 = checkupval(L, 3, 4);
|
||||||
luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected");
|
luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected");
|
||||||
@ -365,7 +365,7 @@ static const luaL_Reg dblib[] = {
|
|||||||
{"getregistry", db_getregistry},
|
{"getregistry", db_getregistry},
|
||||||
{"getmetatable", db_getmetatable},
|
{"getmetatable", db_getmetatable},
|
||||||
{"getupvalue", db_getupvalue},
|
{"getupvalue", db_getupvalue},
|
||||||
{"joinupvalue", db_joinupvalue},
|
{"upvaluejoin", db_upvaluejoin},
|
||||||
{"upvalueid", db_upvalueid},
|
{"upvalueid", db_upvalueid},
|
||||||
{"setfenv", db_setfenv},
|
{"setfenv", db_setfenv},
|
||||||
{"sethook", db_sethook},
|
{"sethook", db_sethook},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user