Guardian Procedure Calls Reference Manual

DEFINEMODE Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Considerations
Example
Related Programming Manual
Summary
The DEFINEMODE procedure allows the caller to control the use of DEFINEs (the DEFINE mode
of the process). See the Guardian Programmer's Guide for details on the DEFINE mode and its
effects.
Syntax for C Programmers
#include <cextdecs(DEFINEMODE)>
short DEFINEMODE ( [ short new-value ]
,[ short _near *old-value ] );
Syntax for TAL Programmers
error := DEFINEMODE ( [ new-value ] ! i
,[ old-value ] ); ! o
Parameters
new-value
input
INT:value
is 0 to disable DEFINEs, and 1 to enable DEFINEs. Note that when setting this value you should
check that the desired DEFINEs are propagated and usable. For further information, see the
Guardian Programmer's Guide.
old-value
output
INT:ref:1
if present, returns the previous status of the DEFINE mode: 0 (OFF) or 1 (ON).
Returned Value
INT
Outcome of the call:
Success.0
The value supplied in new-value is invalid.2067
270 Guardian Procedure Calls (D-E)