There is an implementation of a C language inspired pre-processor in the MSIE JScript interpreter.
The usual pre-processor directives for conditional code use are reproduced here except that in C language they are prefixed with a hash symbol (#) and in JScript the commercial at sign (@) is used instead.
There are several directives and a set of pre-defined constants
@cc_on Statement
@if Statement
@set Statement
@elif( ... ) ... Statement
@else ... Statement
@end Statement
@<variable_name> Reference
@_alpha Pre-defined constant
@_jscript Pre-defined constant
@_jscript_build Pre-defined constant
@_jscript_version Pre-defined constant
@_mac Pre-defined constant
@_mc680x0 Pre-defined constant
@_PowerPC Pre-defined constant
@_win16 Pre-defined constant
@_win32 Pre-defined constant
@_x86 Pre-defined constant
Prev | Home | Next |
Concatenate then assign (+=) | Up | Conditional comment |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |