Difference between revisions of "Preprocessor Defines"

From ROBOTC API Guide
Jump to: navigation, search
Line 19: Line 19:
 
   ! style="text-align:left; border-style: solid; border-width: 0px 0px 0px 0px"|Usage / Comments
 
   ! style="text-align:left; border-style: solid; border-width: 0px 0px 0px 0px"|Usage / Comments
 
   |-
 
   |-
   | style="color:#8b0000; border-style: solid; border-width: 0px 0px 0px 0px"|%d or %i
+
   | style="font-family: Courier New, Courier, monospace; text-align:left; color:#8b0000; border-style: solid; border-width: 0px 0px 0px 0px"|ROBOTC
 
   | style="text-align:left; border-style: solid; border-width: 0px 0px 0px 0px"|Signed decimal integer
 
   | style="text-align:left; border-style: solid; border-width: 0px 0px 0px 0px"|Signed decimal integer
 
   |-
 
   |-
  |}
+
|}
 +
|}

Revision as of 22:17, 4 January 2012

Main >> Preprocessor Defines




The ROBOTC Compiler supports several different preprocessor defines that contain information about the compile time environment. Recently added are defines that indicate which features are enabled in the IDE.

The predefined symbols can be used in include files ad user programs for conditionally compiling code based on features. The preprocessor defines include:

Symbol Name Usage / Comments
ROBOTC Signed decimal integer