aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-18 15:09:24 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-18 15:09:24 +0100
commit277ef1a68f932988cd59b40e496b2b1532907654 (patch)
treef36cac2af780eee688be2515bd020a5be3a18c8d /src/checker.cpp
parent193c7c82c83022fa16dff6cc611d5673753ece8f (diff)
Allow undefined --- as a struct field default value.
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 1cbf5db40..cdc9bf3b4 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -166,7 +166,9 @@ bool is_operand_value(Operand o) {
bool is_operand_nil(Operand o) {
return o.mode == Addressing_Value && o.type == t_untyped_nil;
}
-
+bool is_operand_undef(Operand o) {
+ return o.mode == Addressing_Value && o.type == t_untyped_undef;
+}
struct BlockLabel {
String name;