From b194c5e5f4a858b39bd7b3563446fa87cfb3ce98 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 6 Apr 2021 19:58:56 -0600 Subject: make ifdef respect parent definitions --- src/makefile/macro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3