I think he wants to add the Compiler switch, not just know about the parameter.Originally Posted by tux
Something like:
if paramstr(1)='debug' then {$DEFINE debug}
(obviously not working)
Btw i don't think it is possible. The compiler switches (and all compiler directives) are resolved at compile time so your executable don't know anything about it.
Bookmarks