Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

assert(3alleg4) [debian man page]

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)

Check Out this Related Man Page

ftofix(3alleg4) 						  Allegro manual						   ftofix(3alleg4)

NAME
ftofix - Converts a floating point value to fixed point. Allegro game programming library. SYNOPSIS
#include <allegro.h> fixed ftofix(double x); DESCRIPTION
Converts a floating point value to fixed point. Unlike itofix(), this function clamps values which could overflow the type conversion, set- ting `errno' to ERANGE in the process if this happens. Example: fixed number; number = itofix(-40000); ASSERT(fixfloor(number) == -32768); number = itofix(64000); ASSERT(fixfloor(number) == 32767); ASSERT(!errno); /* This will fail. */ RETURN VALUE
Returns the value of the floating point value converted to fixed point clamping overflows (and setting `errno'). SEE ALSO
fixtof(3alleg4), itofix(3alleg4), fixtoi(3alleg4), exfixed(3alleg4), exrotscl(3alleg4), exspline(3alleg4), exupdate(3alleg4) Allegro version 4.4.2 ftofix(3alleg4)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SFTP error Assertion failed

I get this error when I try to FTP from an HP Alpha Server to a UNIX box. FATAL: BUILD13$:SSHFC_TRANSFER.C;1:1835 SshFCTransfer (function name unavailable) Assertion failed: tdata ->current_dest_file->attributes->flags & 0x00000004 the sftp /put fails just before it does the actual transfer.... (2 Replies)
Discussion started by: NoelSacay
2 Replies

2. Programming

Fork thread, Assertion failed. X11.

Hi all. I wrote a program with the Motif Widget Toolkit. It has a button and a scrollbar. When the user hits the button the callback creates a new fork() thread. The new thread sleeps for a while and then changes the position of the scrollbar. It does this in an endless loop. I need the... (2 Replies)
Discussion started by: mghis
2 Replies

3. Programming

Can't debug: assert error with gdb (no problem without)

I'm sorry if the title is really criptic, but I don't know how to phrase my problem. I know I can't really ask for a solution, and I normally wouldn't but this is really escaping my abilities. Antefacts. I developed a program using the zeromq messaging library. I got to a point where the... (11 Replies)
Discussion started by: erupter
11 Replies