Defines preprocessor symbols.


name1, name2

The name of one or more symbols that you want to define.

value1, value2

Values for the symbols to take. These can be booleans or numbers.

The /define option defines names as symbols in your program.

You can define multiple symbols with /define by using a comma to separate symbol names. For example:


See Conditional Compilation for more information.

/d is the short form of /define.

Compile with /define:xx.

/*@cc_on @*/
/*@if (@xx)
print("xx defined")
@else @*/
print("xx not defined")
/*@end @*/

Community Additions