aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-01-05 14:22:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-01-05 14:22:37 -0200
commit1f259be52a6ac8f7cfdee3787ffbf7dd0966748e (patch)
treebf26e713d78c5d95c7c18b438f582accd9b0ac44 /lcode.h
parent1a44e822009752513ce895b9eabc51a4ee4a195a (diff)
downloadlua-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.tar.gz
lua-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.tar.bz2
lua-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.zip
'getcode' -> 'getinstruction'
Diffstat (limited to 'lcode.h')
-rw-r--r--lcode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lcode.h b/lcode.h
index a3fdf520..d2b5100e 100644
--- a/lcode.h
+++ b/lcode.h
@@ -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 {
40typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; 40typedef 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