aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
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 713f76aa..a3fdf520 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.61 2013/12/16 19:06:52 roberto Exp roberto $ 2** $Id: lcode.h,v 1.62 2013/12/18 14:12:03 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*/
@@ -28,6 +28,7 @@ typedef enum BinOpr {
28 OPR_DIV, 28 OPR_DIV,
29 OPR_IDIV, 29 OPR_IDIV,
30 OPR_BAND, OPR_BOR, OPR_BXOR, 30 OPR_BAND, OPR_BOR, OPR_BXOR,
31 OPR_SHL, OPR_SHR,
31 OPR_CONCAT, 32 OPR_CONCAT,
32 OPR_EQ, OPR_LT, OPR_LE, 33 OPR_EQ, OPR_LT, OPR_LE,
33 OPR_NE, OPR_GT, OPR_GE, 34 OPR_NE, OPR_GT, OPR_GE,
@@ -36,7 +37,7 @@ typedef enum BinOpr {
36} BinOpr; 37} BinOpr;
37 38
38 39
39typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; 40typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
40 41
41 42
42#define getcode(fs,e) ((fs)->f->code[(e)->u.info]) 43#define getcode(fs,e) ((fs)->f->code[(e)->u.info])