summaryrefslogtreecommitdiff
path: root/tnslc/compile/function.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/compile/function.tnsl')
-rw-r--r--tnslc/compile/function.tnsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl
index 849bae1..2a8363a 100644
--- a/tnslc/compile/function.tnsl
+++ b/tnslc/compile/function.tnsl
@@ -1461,6 +1461,7 @@ struct Function {
s`.free_after(~lhs, true)
;/
+ _printf("COMPILE_BOOL_OP\n\0")
/; if (lhs.is_struct() == true)
_printf("Can not use struct as boolean value\n\0")
lhs.end()
@@ -1512,6 +1513,7 @@ struct Function {
# Compute right hand side
Var rhs = self._compile_value(s, rhn)
+ _printf("COMPILE_BOOL_OP\n\0")
/; if (rhs.is_struct() == true)
_printf("Can not use struct as boolean value\n\0")
lhs.end()
@@ -1601,6 +1603,7 @@ struct Function {
# Compute right hand side
Var rhs = self._compile_value(s, rhn)
+ _printf("COMPILE_CMP_OP\n\0")
# Check not structs
/; if (lhs.is_struct() == true || rhs.is_struct() == true)
_printf("Can not compare structs in this version of tnsl\n\0")