__DEBUG__

Top  Previous  Next

__DEBUG__ is defined when debug is enabled for the project. See Project: Settings.

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
#IFDEF __DEBUG__ THEN
  DebugMsg(message := "Debug is enabled.");
#ELSE
  DebugMsg(message := "Debug is not enabled.");
#END_IF
 
END_PROGRAM;