mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
C upvalues are the last arguments to a function
This commit is contained in:
parent
b691d4344b
commit
ac12f4db4b
6 changed files with 74 additions and 65 deletions
4
lua.c
4
lua.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lua.c,v 1.45 2000/08/14 17:45:59 roberto Exp roberto $
|
||||
** $Id: lua.c,v 1.46 2000/08/28 17:57:04 roberto Exp roberto $
|
||||
** Lua stand-alone interpreter
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -142,7 +142,7 @@ static void getargs (char *argv[]) {
|
|||
|
||||
|
||||
static int l_getargs (lua_State *l) {
|
||||
char **argv = (char **)lua_touserdata(l, 1);
|
||||
char **argv = (char **)lua_touserdata(l, -1);
|
||||
getargs(argv);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue