KCML_Panic_SetHook

Purpose

Register a callback routine to be executed to be called before and after PANICs.

Definition

DEFSUB 'KCML_Panic_SetHook(HookFn AS SYM('KCML_Panic_SetHook_Prototype), UserData AS SYM(KCMLString)) AS Void

Parameters

HookFnSYM of a function compatible with the prototype 'KCML_Panic_SetHook_Prototype or zero to stop tracing subroutine calls.
UserDataSYM of an application state block

Description

Allows an application function to be called before a PANIC and after a PANIC is generated.

See also

Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.