Tests and sets the abort control flag#include <smumisc.h>int sm_isabort(int flag);
- The flag to set for abort control, one of the following defined in
- Set abort flag.
- Clear abort flag.
- Turn abort reporting off.
- Do not alter the flag.
sm_isabortsets the abort flag to the value of
flagand returns the old value. Abort reporting provides a quick way out of processing in the Panther library, which otherwise might involve nested calls to sm_input. The triggering event is the detection of an abort condition by sm_getkey, either an ABORT keystroke, or a call to this function with
ABT_ON—for example, from an asynchronous function.
/* Establish an abort condition */
/* Verify that an abort condition exists, without
* altering it. */
if (sm_isabort(ABT_NOCHANGE) == ABT_ON)