contents.gifindex.gif

@Const - Constant Declarations

Syntax

@CONST id = expression ;

id - A valid identifier

expression - A valid expression

Use

@CONST allows new constant declarations to be made in a source file outside the normal (and required) declarations section.

The @CONST directive is intended to be used inside macros to define internal constants. Constants defined with @CONST override previous constant declarations. Declaring an identifier as a constant in this manner constitutes an error if the identifier was used earlier in the source file as something other than a constant (that is, a macro, pin, device).

Examples

@CONST count = count + 1;


See Also

= (Constant Declarations)

Special Constants