diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-01-05 14:22:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-01-05 14:22:37 -0200 |
commit | 1f259be52a6ac8f7cfdee3787ffbf7dd0966748e (patch) | |
tree | bf26e713d78c5d95c7c18b438f582accd9b0ac44 /lcode.h | |
parent | 1a44e822009752513ce895b9eabc51a4ee4a195a (diff) | |
download | lua-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.tar.gz lua-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.tar.bz2 lua-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.zip |
'getcode' -> 'getinstruction'
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.62 2013/12/18 14:12:03 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.63 2013/12/30 20:47:58 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -40,7 +40,8 @@ typedef enum BinOpr { | |||
40 | typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | 40 | typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; |
41 | 41 | ||
42 | 42 | ||
43 | #define getcode(fs,e) ((fs)->f->code[(e)->u.info]) | 43 | /* get (pointer to) instruction of given 'expdesc' */ |
44 | #define getinstruction(fs,e) ((fs)->f->code[(e)->u.info]) | ||
44 | 45 | ||
45 | #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) | 46 | #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) |
46 | 47 | ||