aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-30 17:08:23 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-30 17:08:23 -0200
commitf76bca23ef1f45d3533f16285e223408346ddcaa (patch)
treed6babf7187ebb648e63748f0c14431a64e8300a9 /lvm.c
parenta5fd7d722c2c15ca954ecd69bfe72b8fe5c4c384 (diff)
downloadlua-f76bca23ef1f45d3533f16285e223408346ddcaa.tar.gz
lua-f76bca23ef1f45d3533f16285e223408346ddcaa.tar.bz2
lua-f76bca23ef1f45d3533f16285e223408346ddcaa.zip
variants for "ARGS".
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 13bd6e73..0fcaff2c 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.19 1997/12/23 19:24:19 roberto Exp roberto $ 2** $Id: lvm.c,v 1.20 1997/12/29 17:35:46 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -474,7 +474,12 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base)
474 break; 474 break;
475 475
476 case ARGS: 476 case ARGS:
477 luaD_adjusttop(base+(*pc++)); 477 aux = *pc++; goto args;
478
479 case ARGS0: case ARGS1: case ARGS2: case ARGS3:
480 aux -= ARGS0;
481 args:
482 luaD_adjusttop(base+aux);
478 break; 483 break;
479 484
480 case VARARGS: 485 case VARARGS: