Synopsis
void OMset_state_mode(
int mode );
Description
OMset_state_mode is a C macro that sets the state mode to the mode supplied. The state mode is a part of the current context that determines how changes made are saved using the save operation. It is also set through OMpush_ctx and is restored when an OMpop_ctx call is made. As long as you make the OMset_state_mode call in between OMpush_ctx and OMpop_ctx calls, you do not need to restore the state mode after changing it. All methods are executed inside of OMpush_ctx and OMpop_ctx calls.
Argument
mode
This argument specifies the state mode. It can be set to one of the values OM_STATE_PROG, OM_STATE_USR or OM_STATE_TRANSIENT. See OMpush_ctx and OMpop_ctx for details.
See also