aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-06 19:58:56 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-06 19:58:56 -0600
commitb194c5e5f4a858b39bd7b3563446fa87cfb3ce98 (patch)
tree72ae71590b01aa3960261267df7cbc6adb737bda /src
parente232a176d8bb0e2ccd510028d22a76f48eccf1c5 (diff)
downloadmakers-b194c5e5f4a858b39bd7b3563446fa87cfb3ce98.tar.gz
makers-b194c5e5f4a858b39bd7b3563446fa87cfb3ce98.zip
make ifdef respect parent definitions
Diffstat (limited to 'src')
-rw-r--r--src/makefile/macro.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index 6a456af..f00fdff 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -171,7 +171,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
#[cfg(feature = "full")]
pub fn is_defined(&self, name: &str) -> bool {
- self.data.get(name).map_or(false, |x| !x.text.is_empty())
+ self.get(name).map_or(false, |x| !x.text.is_empty())
}
// `remove` is fine, but I think for "remove-and-return" `pop` is better