27 OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_MOD, OPR_POW,
30 OPR_LT, OPR_LE, OPR_GT, OPR_GE,
36 typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
39 #define getcode(fs,e) ((fs)->f->code[(e)->u.s.info]) 41 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) 43 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) 45 LUAI_FUNC
int luaK_codeABx (
FuncState *fs, OpCode o,
int A,
unsigned int Bx);
46 LUAI_FUNC
int luaK_codeABC (
FuncState *fs, OpCode o,
int A,
int B,
int C);
47 LUAI_FUNC
void luaK_fixline (
FuncState *fs,
int line);
48 LUAI_FUNC
void luaK_nil (
FuncState *fs,
int from,
int n);
49 LUAI_FUNC
void luaK_reserveregs (
FuncState *fs,
int n);
50 LUAI_FUNC
void luaK_checkstack (
FuncState *fs,
int n);
52 LUAI_FUNC
int luaK_numberK (
FuncState *fs, lua_Number r);
65 LUAI_FUNC
void luaK_ret (
FuncState *fs,
int first,
int nret);
66 LUAI_FUNC
void luaK_patchlist (
FuncState *fs,
int list,
int target);
67 LUAI_FUNC
void luaK_patchtohere (
FuncState *fs,
int list);
68 LUAI_FUNC
void luaK_concat (
FuncState *fs,
int *l1,
int l2);
69 LUAI_FUNC
int luaK_getlabel (
FuncState *fs);
73 LUAI_FUNC
void luaK_setlist (
FuncState *fs,
int base,
int nelems,
int tostore);
Definition: lobject.h:199