7.7.8.123. OnPreReset()ΒΆ

GEL callback function called before the target processor is reset.

Syntax

OnPreReset( intresetIndex );

Parameters

resetIndex: The index of the reset that is about to be issued. This index corresponds to the order in which resets are listed in the UI. Index 0 is the first reset listed.

Description

If defined in a loaded GEL file, OnPreReset() is called before a reset is issued to the target processor. The reset will not be reset until the callback is fully evaluated. The reset will be issued regardless of the result of the callback, even if it throws an error.

Example

OnPreReset(0)
{
    GEL_TextOut("Reset 0 is about to be issued.\n");
}