debian man page for assert

Query: assert

OS: debian

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ASSERT(3alleg4) 						  Allegro manual						   ASSERT(3alleg4)

NAME
ASSERT - Debugging helper macro to assert. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void ASSERT(condition);
DESCRIPTION
Debugging helper macro. Normally compiles away to nothing, but if you defined the preprocessor symbol DEBUGMODE before including Allegro headers, it will check the supplied condition and call al_assert() if it fails, whose default action is to stop the program and report the assert. You can use this macro even when Allegro has not been initialised. Example: #define DEBUGMODE #include ... void my_blitter(BITMAP *source, int flags) { int some_variables; ASSERT(source != NULL); ASSERT(flags & GAME_RUNNING); ... }
SEE ALSO
al_assert(3alleg4), TRACE(3alleg4), register_assert_handler(3alleg4), expackf(3alleg4) Allegro version 4.4.2 ASSERT(3alleg4)
Related Man Pages
ftofix(3alleg4) - debian
register_assert_handler(3alleg4) - debian
ftofix(3alleg4) - centos
ftofix(3alleg4) - linux
ftofix(3alleg4) - osx
Similar Topics in the Unix Linux Community
FEST-Assert 1.0a1 (Default branch)
SFTP error Assertion failed
FEST-Assert 1.0 (Default branch)
FCC looks at ways to assert authority over Web access
Fork thread, Assertion failed. X11.