Go to the source code of this file.
Macros | |
#define | foldbinop(op) ((op) <= OPR_SHR) |
#define | getinstruction(fs, e) ((fs)->f->code[(e)->u.info]) |
#define | luaK_codeABC(fs, o, a, b, c) luaK_codeABCk(fs,o,a,b,c,0) |
#define | luaK_jumpto(fs, t) luaK_patchlist(fs, luaK_jump(fs), t) |
#define | luaK_setmultret(fs, e) luaK_setreturns(fs, e, LUA_MULTRET) |
#define | NO_JUMP (-1) |
Typedefs | |
typedef enum BinOpr | BinOpr |
typedef enum UnOpr | UnOpr |
Enumerations | |
enum | BinOpr { OPR_ADD, OPR_SUB, OPR_MUL, OPR_MOD, OPR_POW, OPR_DIV, OPR_IDIV, OPR_BAND, OPR_BOR, OPR_BXOR, OPR_SHL, OPR_SHR, OPR_CONCAT, OPR_EQ, OPR_LT, OPR_LE, OPR_NE, OPR_GT, OPR_GE, OPR_AND, OPR_OR, OPR_NOBINOPR } |
enum | UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } |
#define getinstruction | ( | fs, | |
e | |||
) | ((fs)->f->code[(e)->u.info]) |
#define luaK_codeABC | ( | fs, | |
o, | |||
a, | |||
b, | |||
c | |||
) | luaK_codeABCk(fs,o,a,b,c,0) |
#define luaK_jumpto | ( | fs, | |
t | |||
) | luaK_patchlist(fs, luaK_jump(fs), t) |
#define luaK_setmultret | ( | fs, | |
e | |||
) | luaK_setreturns(fs, e, LUA_MULTRET) |
enum BinOpr |
enum UnOpr |
LUAI_FUNC int luaK_code | ( | FuncState * | fs, |
Instruction | i | ||
) |
LUAI_FUNC void luaK_int | ( | FuncState * | fs, |
int | reg, | ||
lua_Integer | n | ||
) |