GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ASSERT (3)

NAME

ASSERT - Debugging helper macro to assert. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

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(3), TRACE(3), register_assert_handler(3), expackf(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro ASSERT (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.