34 |
34 |
35 |
35 |
36 typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; |
36 typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; |
37 |
37 |
38 |
38 |
39 #define getcode(fs,e) ((fs)->f->code[(e)->u.s.info]) |
39 #define getcode(fs,e) ((fs)->f->code[(e)->u.s.info]) |
40 |
40 |
41 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) |
41 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) |
42 |
42 |
43 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) |
43 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) |
44 |
44 |
45 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
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); |
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); |
47 LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
48 LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
48 LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |