910725 - where's _DEBUG?
in Windows, applications usually are deployed in two versions, debug and release. in case of debug, _DEBUG is defined. in Linux, it's a good idea to have such a variable, eg. for when we want to log some info in some cases. this should happen only in debug mode.
is there such a thing in Linux? thx |
Quote:
Quote:
Quote:
|
thanx 4 replying
i didn't know that and i got curious to know what might have been the reasons. then i thought about that. using a config file or a command line switch is a good idea. it even gives more flexibility to customize the behavior of programs. for example, instead of logging or not logging, user may decide to define a debug level and decide what to be logged. sounds a good idea. thx |
All times are GMT -5. The time now is 01:52 PM. |