"version" predefined pragma

Dave Dave_member at pathlink.com
Tue Feb 21 19:52:38 PST 2006


Along the same lines as pragma(lib,...) I'm wondering if it would make sense to
add something like pragma(switch,...) also, e.g.:

pragma(switch,"-version=MY_VERSION");
version(Windows)
{
pragma(switch,"-L/SUBSYSTEM:windows:5");
}

That would act like the command-line:

C:\>dmd foo.d bar.d version=MY_VERSION -L/SUBSYSTEM:windows:5





More information about the Digitalmars-d mailing list