aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r--src/makefile/macro.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index e760282..bb4a72d 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -5,6 +5,7 @@ use std::fmt;
use eyre::{bail, Result, WrapErr};
use regex::Regex;
+#[cfg(feature = "full")]
use super::functions;
use super::token::{Token, TokenString};
@@ -71,6 +72,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
self.data.insert(name, (source, text));
}
+ #[cfg(feature = "full")]
pub fn is_defined(&self, name: &str) -> bool {
self.data.contains_key(name)
}
@@ -113,6 +115,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
};
result.push_str(&macro_value);
}
+ #[cfg(feature = "full")]
Token::FunctionCall { name, args } => {
result.push_str(&functions::expand_call(name, args, self)?);
}
@@ -129,6 +132,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
}
}
+ #[cfg(feature = "full")]
pub fn with_overlay<'s>(&'s self) -> Set<'s, 'lookup> {
Set {
parent: Some(self),