From 809bdceb5f0717bb962b32575fdd8f1df380b0be Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Wed, 13 Jan 2021 20:35:14 -0800 Subject: [PATCH] Add FALSE and TRUE as macros Many other builtin global consts should also double as macros, but documentation attributes will need to be supported for them. --- src/dreammaker/builtins.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dreammaker/builtins.rs b/src/dreammaker/builtins.rs index 3ecdf48c..037cd161 100644 --- a/src/dreammaker/builtins.rs +++ b/src/dreammaker/builtins.rs @@ -77,6 +77,9 @@ pub fn default_defines(defines: &mut DefineMap) { DM_BUILD = Int(DM_BUILD); SPACEMAN_DMM = Int(1); + FALSE = Int(0); + TRUE = Int(1); + // eye and sight SEEINVIS = Int(2); SEEMOBS = Int(4);