I want to make som special handing for each function in debug mode.
So I found the !DEC$ DEFINE,
I want to do that in each subroutine of my programm.
So I don't want to make a Flag like,
if (debug) then
dump (variables)
edif
sice I need that only in debug mode, an I want to minimize computational costs.
The problem of the !DEC$ DEFINE is that is only local. I want to make a global flag debug. If the flag is set, the compiler should make the code, with all debug-handling, and the simple code if I dont set this debug flag.
I could define "!DEC$ DEFINE DEBUG" in each source file, but, then it's tedious to swicht the flag on or of for all files.
Is there any posibility to make such a global flag, in the !DEC% DEFINE mode ?



