1.21 gigawatts
1.21 gigawatts

Reputation: 17870

Are there any conditional compilation constants I can use?

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

Answers (1)

Brian Genisio
Brian Genisio

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

Related Questions