Compiler Error 1309 - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
312
SIMPL+

Compiler Error 1309

declaration error: Compiler Directive must be set before all
global variable declarations
Directive already set
The compiler directives, #DEFAULT_VOLATILE and
#DEFAULT_NONVOLATILE, must be used before any global variables are
encountered within the SIMPL+ module. A module cannot contain more than one of
these directives.
The following are examples of this error:
////////////////////////////////////////////////////////////
//////
// Example 1
#DEFAULT_VOLATILE
INTEGER x;
STRING str[100];
DIGITAL_INPUT di;
FUNCTION MyFunc()
{
}
////////////////////////////////////////////////////////////
//////
// Example 2
INTEGER x;
STRING str[100];
DIGITAL_INPUT di;
#DEFAULT_VOLATILE
been
FUNCTION MyFunc()
{
}
////////////////////////////////////////////////////////////
//////
// Example 3
#DEFAULT_VOLATILE
#DEFAULT_NONVOLATILE Compiler
#DEFAULT_VOLATILE Compiler
Directive already set
// ok – compiler directive exists before
//
all global variables
// error – global variables have already
//
declared within this module
// ok – compiler directive exists before
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
®

Advertisement

Table of Contents
loading

Table of Contents