mirror of
https://github.com/lua/lua
synced 2025-01-08 10:32:01 +03:00
"settag" returns its first argument.
This commit is contained in:
parent
f380d627f8
commit
5ef1989c4b
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lbuiltin.c,v 1.23 1998/01/19 19:49:22 roberto Exp roberto $
|
||||
** $Id: lbuiltin.c,v 1.24 1998/02/12 19:23:32 roberto Exp roberto $
|
||||
** Built-in functions
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -312,6 +312,7 @@ static void settag (void)
|
||||
lua_Object o = luaL_tablearg(1);
|
||||
lua_pushobject(o);
|
||||
lua_settag(luaL_check_number(2));
|
||||
lua_pushobject(o); /* returns first argument */
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user