Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

COMPILE_OPT


Syntax | Arguments | Version History

The COMPILE_OPT statement allows you to give the IDL compiler information that changes some of the default rules for compiling the function or procedure within which the COMPILE_OPT statement appears.

RSI recommends the use of

COMPILE_OPT IDL2 

in all new code intended for use in a reusable library. We further recommend the use of

COMPILE_OPT idl2, HIDDEN 

in all such routines that are not intended to be called directly by regular users (e.g. helper routines that are part of a larger package).

Note
For information on using COMPILE_OPT, see Procedures and Functions.

Syntax

COMPILE_OPT opt1 [, opt2, ..., optn]

Arguments

optn

This argument can be any of the following:

Constant
Normal Type
DEFINT32 Type
Without type specifier:
 
 
42
INT
LONG
'2a'x
INT
LONG
42u
UINT
ULONG
'2a'xu
UINT
ULONG
With type specifier:
 
 
0b
BYTE
BYTE
0s
INT
INT
0l
LONG
LONG
42.0
FLOAT
FLOAT
42d
DOUBLE
DOUBLE
42us
UINT
UINT
42ul
ULONG
ULONG
42ll
LONG64
LONG64
42ull
ULONG64
ULONG64

Version History

Introduced: 5.3.

STRICTARRSUBS option added: 5.6

LOGICAL_PREDICATE option added: 6.0


Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]