Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


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 @*/

See Also

JScript Compiler Options

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.