summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-12-14 17:28:50 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-12-14 18:23:16 +0100
commitc813e94606929449b93c780af0f9764e333b8218 (patch)
tree2e2dd43670e8bb238a6a3d21b7508d2c45a46306 /src/bindings
parentb4740389f950f502c0173d376d06e228b9c7067e (diff)
eolian: unary expr eval for floats and add a signed number mask
This adds a new mask for all signed numbers (sint + float) and fixes unary expr evaluation for floats, as well as fixes eval error messages.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index 66727fa..2b2df9f 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -109,6 +109,7 @@ ffi.cdef [[
109 EOLIAN_MASK_STRING = 1 << 4, 109 EOLIAN_MASK_STRING = 1 << 4,
110 EOLIAN_MASK_CHAR = 1 << 5, 110 EOLIAN_MASK_CHAR = 1 << 5,
111 EOLIAN_MASK_NULL = 1 << 6, 111 EOLIAN_MASK_NULL = 1 << 6,
112 EOLIAN_MASK_SIGNED = EOLIAN_MASK_SINT | EOLIAN_MASK_FLOAT,
112 EOLIAN_MASK_NUMBER = EOLIAN_MASK_INT | EOLIAN_MASK_FLOAT, 113 EOLIAN_MASK_NUMBER = EOLIAN_MASK_INT | EOLIAN_MASK_FLOAT,
113 EOLIAN_MASK_ALL = EOLIAN_MASK_NUMBER | EOLIAN_MASK_BOOL 114 EOLIAN_MASK_ALL = EOLIAN_MASK_NUMBER | EOLIAN_MASK_BOOL
114 | EOLIAN_MASK_STRING | EOLIAN_MASK_CHAR 115 | EOLIAN_MASK_STRING | EOLIAN_MASK_CHAR
@@ -1222,6 +1223,7 @@ M.expression_mask = {
1222local emask = M.expression_mask 1223local emask = M.expression_mask
1223 1224
1224emask.INT = bit.bor(emask.SINT , emask.UINT ) 1225emask.INT = bit.bor(emask.SINT , emask.UINT )
1226emask.SIGNED = bit.bor(emask.SINT , emask.FLOAT)
1225emask.NUMBER = bit.bor(emask.INT , emask.FLOAT) 1227emask.NUMBER = bit.bor(emask.INT , emask.FLOAT)
1226emask.ALL = bit.bor(emask.NUMBER, emask.BOOL, 1228emask.ALL = bit.bor(emask.NUMBER, emask.BOOL,
1227 emask.STRING, emask.CHAR, emask.NULL) 1229 emask.STRING, emask.CHAR, emask.NULL)