home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: SysTools
/
SysTools.zip
/
ft-beta.zip
/
freetype
/
lib
/
tterror.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-06
|
2KB
|
72 lines
/*******************************************************************
*
* tterror.h
*
* Error number declaration and handling (specification).
*
* Copyright 1996, 1997 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
* modified and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify or distribute
* this file you indicate that you have read the license and
* understand and accept it fully.
*
******************************************************************/
#ifndef TTERROR_H
#define TTERROR_H
#include "ttcommon.h"
/***************************************************************************/
/* */
/* various tracing macros */
/* */
/***************************************************************************/
#ifdef CHECK_ASSERTIONS
#define Assert( condition, action ) if (!(condition)) (action)
#else
#define Assert( condition, action ) /* void, no check */
#endif
/* you must say */
/* */
/* DebugTrace(( fmt, arg1, arg2, ... )) */
/* */
/* in the code (note the double parentheses). */
#ifdef DEBUG
#define DebugTrace( x ) Message##x
#else
#define DebugTrace( x ) do{}while(0)
#endif /* DEBUG */
#ifdef __cplusplus
extern "C" {
#endif
void Message( const char* fmt, ... );
void Panic( const char* fmt, ... ); /* print a message and exit */
#ifdef __cplusplus
}
#endif
#endif /* TTERROR_H */
/* End */