SETLIST extra argument now is an "instruction" (OP_EXTRAARG)

This commit is contained in:
Roberto Ierusalimschy
2008-04-02 14:38:54 -03:00
parent 5627d51e05
commit a4d3080fe3
6 changed files with 68 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.c,v 2.46 2008/02/11 19:04:16 roberto Exp roberto $
** $Id: ltests.c,v 2.47 2008/02/19 18:55:09 roberto Exp roberto $
** Internal Module for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -410,6 +410,9 @@ static char *buildop (Proto *p, int pc, char *buff) {
case iAsBx:
sprintf(buff+strlen(buff), "%-12s%4d %4d", name, GETARG_A(i), GETARG_sBx(i));
break;
case iAx:
sprintf(buff+strlen(buff), "%-12s%4d", name, GETARG_Ax(i));
break;
}
return buff;
}