Conditional assembly (all project type)


In order to make conditional assembly easier to programmers, Easy Code offers the reserved word DEBUG so that you can always know whether the code is being compiled in Debug or Release mode. At compile time, Easy Code internally defines DEBUG as 1 (TRUE) only if the project is in Debug mode, while DEBUG is never defined if the project is in Release mode (see REMARKS). Using DEBUG and the conditional directives, you can write code for debugging purposes. For example:

#IF DEBUG
    ;Instructions here will only
    ;
be compiled in Debug mode
#ENDIF

Also, you can write different code for Debug and Release versions:

#IF DEBUG
    ;Instructions here will only
    ;
be compiled in Debug mode
#ELSE
    ;Instructions here will only
    ;
be compiled in Release mode
#ENDIF


REMARKS:
You can change from one mode to another by checking (Debug mode) or unchecking (Release mode) the Add symbolic information option in the
Project properties.