3 the preprocessor, 3 the preprocessor -14 – ElmoMC SimplIQ Software Manual User Manual

Page 76

Advertising
background image

SimplIQ

Software Manual

Program Development and Execution

MAN-SIMSW (Ver. 1.4)

6-14

Error
Code


Error String


Meaning


Example

90

Condition is

missing

The condition is missing in an
#if or #elseif directive.

#if
A condition must follow the #if
directive.

91

Misplaced

continue

The continue keyword is used
outside a for or while loop, or
inside an unclosed try-catch
block.

92

Misplaced

#else or

#elseif

#else or #elseif has been used
out of an #if-#endif block, or
#else is used more than once
in the same #if-#endif block
or #else is not the last
directive before #endif.

#ifNUM > 10

#elseif NUM > 5

#else

#elseif NUM > 3

#endif
The #else directive is not the last
directive before the #endif.

93

Identifier

wasn’t

declared

The identifier of an #undef
directive was not defined
previously.

#undef NUM
This statement is illegal if it is
not preceded by an #define
NUM directive.

94

Mismatched

type

Type of evaluated constant
expression is neither integer
nor float. If error is received,
contact [email protected].
Attach the Composer date
and version (from the Help
menu) and the program you
have attempted to compile.

95

Too many

identifiers

have been

defined

User has defined more than
100 #define directives in the
program.

96

Misplaced

#endif

#endif directive is not
preceded by #if.

97

Unknown error

Unknown error.

6.3

The Preprocessor

Prior to code generation, the Compiler preprocesses the user code, handling the Compiler
directives, described in

section

6.4.1

. The preprocessor performs the following:

ƒ

Searches for literal constant definitions, such as
#define MYConst 5

and replaces literal strings in the user code with their values.

ƒ

Evaluates the conditional expression of #if, #elseif, #ifdef and #ifndef directives.

Advertising