al_register_assert_handler(3)

al_register_assert_handler3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
void al_register_assert_handler(void (*handler)(char const *expr,
   char const *file, int line, char const *func))

Overview

Register a function to be called when an internal Allegro assertion fails. Pass NULL to reset to the default behaviour, which is to do whatever the standard assert() macro does.

Since

5.0.6, 5.1.0

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.