ASSERT man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

ASSERT(3)			Allegro manual			     ASSERT(3)

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  ini‐
       tialised. 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(3), TRACE(3), register_assert_handler(3), expackf(3)

Allegro				 version 4.4.2			     ASSERT(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net