Xil_AssertSetCallback - Xil_AssertSetCallback - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

Set up a callback function to be invoked when an assert occurs.

If a callback is already installed, then it is replaced.

Note: This function has no effect if NDEBUG is set

Prototype

void Xil_AssertSetCallback(Xil_AssertCallback Routine);

Parameters

The following table lists the Xil_AssertSetCallback function arguments.

Table 1. Xil_AssertSetCallback Arguments
Name Description
routine callback to be invoked when an assert is taken

Returns

None.