As Beaker said, there's no way of detecting this, as far as I'm aware.
It would be useful if this feature existed, as there are often times when I want to handle things differently for a debug or release compile.
Some of the file handling stuff behaves differently between debug and release modes, also, so it would be useful to be able to select alternate code to compile in each case.
All that would be required is an automatically generated constant that holds a value indicating the compile type.
You can obvoiusly create a constant and set its value manually, but that sort of micro-management is undesirable, and generally leads to tears before bedtime.
It would be useful if this feature existed, as there are often times when I want to handle things differently for a debug or release compile.
Some of the file handling stuff behaves differently between debug and release modes, also, so it would be useful to be able to select alternate code to compile in each case.
All that would be required is an automatically generated constant that holds a value indicating the compile type.
You can obvoiusly create a constant and set its value manually, but that sort of micro-management is undesirable, and generally leads to tears before bedtime.