diff --git a/lopcodes.c b/lopcodes.c new file mode 100644 index 00000000..f802f42b --- /dev/null +++ b/lopcodes.c @@ -0,0 +1,108 @@ +/* +** $Id$ +** extracted automatically from lopcodes.h by mkprint.lua +** DO NOT EDIT +** See Copyright Notice in lua.h +*/ + + +#define LUA_PRIVATE +#include "lua.h" + +#include "lopcodes.h" + + +#ifdef LUA_OPNAMES + +const l_char *const luaP_opnames[] = { + l_s("MOVE"), + l_s("LOADK"), + l_s("LOADINT"), + l_s("LOADNIL"), + l_s("LOADUPVAL"), + l_s("GETGLOBAL"), + l_s("GETTABLE"), + l_s("SETGLOBAL"), + l_s("SETTABLE"), + l_s("NEWTABLE"), + l_s("SELF"), + l_s("ADD"), + l_s("SUB"), + l_s("MUL"), + l_s("DIV"), + l_s("POW"), + l_s("UNM"), + l_s("NOT"), + l_s("CONCAT"), + l_s("JMP"), + l_s("CJMP"), + l_s("TESTEQ"), + l_s("TESTNE"), + l_s("TESTLT"), + l_s("TESTLE"), + l_s("TESTGT"), + l_s("TESTGE"), + l_s("TESTT"), + l_s("TESTF"), + l_s("NILJMP"), + l_s("CALL"), + l_s("RETURN"), + l_s("FORPREP"), + l_s("FORLOOP"), + l_s("TFORPREP"), + l_s("TFORLOOP"), + l_s("SETLIST"), + l_s("SETLISTO"), + l_s("CLOSURE") +}; + +#endif + + +#define opmode(t,a,b,c,sa,k,m) (((t)<