Reputation: 17870
Are there any built in conditional compilation constants that I can use to check if I'm running in debug or release build?
Upvotes: 1
Views: 72
Reputation: 48167
Not by default, no. But it is easy to add to your build configuration to do this. Here is an explanation of compiler flags and conditional compilation.
AS3: Conditional Compilation Demystified
Some IDEs (such as FlashDevelop) will add CONFIG::Debug
and CONFIG::Release
to the build configuration for you
Upvotes: 3