Let say I want to insert
{.bound_checks:off.}
for release mode into some modules. I can use include but this is inconvenient with 3pp libraries and system libraries.
I see .cfg format allows if (in @if form). (There are also few .cfg files for documentation generation: it is unclear for me whether these share syntax with "classic" .cfg files or are something completely different.)
Do the .cfg have ability to "use modules"? Something as:
@for modules in { system, "xyz/*", this/that, "*_optimized" } when RELEASE_MODE {.bound_checks:off.}
This is not how the configuration system works. The configuration system is based on projects not on modules.
I'm not sure what you want is a good idea: If you want boundChecks off, turn them off. Or even better leave them on and let the C compiler optimize the bound checks away. Or wait until Nimrod optimizes them away. The code for to do this already exists btw.