pub struct MacroExpandOptions {
pub env_fallback: bool,
pub dollar_escape: bool,
pub suppress_warnings: bool,
}Expand description
Resolution options for the macLib expansion engine (expand_macros).
Fields§
§env_fallback: boolFall back to the process environment when a name is unset,
matching C macCreateHandle(&h, environ). The .db parser
leaves this off (its substitutions come only from the
dbLoadRecords / .substitutions macro map); dbLoadGroup
and autosave turn it on.
dollar_escape: boolTreat $$ as a literal $. An autosave .req convenience, NOT
a macLib behavior — C macLib leaves $$ verbatim ($ is only
special before (/{), so the .db parser leaves it off.
suppress_warnings: boolC macSuppressWarning / FLAG_SUPPRESS_WARNINGS
(macCore.c:155-168). It silences the macLib: diagnostics AND
changes the text: a suppressed undefined reference is written back
as $(name) where a warned one is $(name,undefined)
(refer, macCore.c:920-928). Off is C’s default; the .db
loader turns it on from dbQuietMacroWarnings
(dbLexRoutines.c:58, :273) and msi turns it on outright
(msi.cpp:154).