Passing macros from commandline or enumerating versions

Martin DraĊĦar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 7 13:30:02 PST 2017


Hi,

I was wondering, if there is a way to pass a macro with value to the
compiled program, i.e., something like -Dfoo="bar". And if that is not
possible, if there is a way to enumerate all set versions.

I want my application built with different string imported
configurations and I have no idea how to tell compiler which
configuration to choose, other than hardcoding it.

Thanks,
Martin


More information about the Digitalmars-d-learn mailing list