Conditional Compilation

Iodine supports the same directives as C# for Conditional Compilation.

Code blocks, whole members or entire types can be enclosed using #if and #endif directives in order to compile them only when the specified condition applies.

void main() {
    soSomething()
    #if DEBUG
    doSomethingOnlyInDebugMode();
    #endif
    doSomethingElse();
}

See Also