diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-18 15:09:24 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-18 15:09:24 +0100 |
| commit | 277ef1a68f932988cd59b40e496b2b1532907654 (patch) | |
| tree | f36cac2af780eee688be2515bd020a5be3a18c8d /src/checker.cpp | |
| parent | 193c7c82c83022fa16dff6cc611d5673753ece8f (diff) | |
Allow undefined --- as a struct field default value.
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 4 |
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; |