mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
new macro pushliteral
This commit is contained in:
parent
595e449537
commit
4ff5545709
7 changed files with 21 additions and 19 deletions
4
lua.c
4
lua.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lua.c,v 1.54 2000/10/17 13:36:24 roberto Exp roberto $
|
||||
** $Id: lua.c,v 1.55 2000/10/20 16:36:32 roberto Exp roberto $
|
||||
** Lua stand-alone interpreter
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -137,7 +137,7 @@ static void getargs (char *argv[]) {
|
|||
lua_settable(L, -3);
|
||||
}
|
||||
/* arg.n = maximum index in table `arg' */
|
||||
lua_pushstring(L, "n");
|
||||
lua_pushliteral(L, "n");
|
||||
lua_pushnumber(L, i-1);
|
||||
lua_settable(L, -3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue