Compiler Error 1005; Compiler Error 1006 - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
294
SIMPL+

Compiler Error 1005

syntax error: Unexpected symbol in compiler directive:
'<identifier>'
An invalid identifier is following a compiler directive.
The following are examples of this error:
#DEFINE_CONSTANT
#DEFINE_CONSTANT
should not

Compiler Error 1006

syntax error: Invalid #DEFINE_CONSTANT value:
'<identifier>'
The value for a #DEFINE_CONSTANT compiler directive must be either a literal
string or an integer value. Expressions, variables, functions and events cannot be
specified as the compiler directive's value.
The following are examples of this error:
INTEGER x;
#DEFINE_CONSTANT
#DEFINE_CONSTANT
#DEFINE_CONSTANT MyExprConst
are
#DEFINE_CONSTANT
substitutions are
#DEFINE_CONSTANT
are not
#DEFINE_CONSTANT
#DEFINE_CONSTANT
MyIntConst
100
// ok
"MyIntConst"
100
// error – MyIntConst
//
//
//
MyIntConst
100
MyStrConst
"abc"
(1+2)
MyVarConst
x
MyExprConst
(x+1)
MyFuncConst
myFunc
MyFuncConst
getc
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
be in quotes – this
will be evaluated as
a literal string
// ok
// ok
// error – expressions
//
not allowed
// error –
//
not allowed
// error – macros
//
supported
// error
// error
®

Advertisement

Table of Contents
loading

Table of Contents