Conditional assembly (all project type)
In order to make conditional assembly easier to programmers, Easy Code defines two global constants: DEBUG and RELEASE, depending on how the code is being compiled. If compiled in Debug mode, Easy Code internally defines DEBUG as 1 and RELEASE as 0, while if compiled in Release mode, RELEASE is defined as 1 and DEBUG as 0 (see REMARKS). Using DEBUG, RELEASE 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 Debug
to Release
mode by checking (Debug)
or unchecking (Release)
the Add symbolic information
option in the
Project
properties.