home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: SysTools
/
SysTools.zip
/
ft-beta.zip
/
freetype
/
lib
/
tterror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-06
|
1KB
|
58 lines
/*******************************************************************
*
* tterror.c
*
* Error number declaration and handling (body).
*
* 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.
*
* NOTE:
*
* This component's body only contains the global variable Error
* which will most probably move to the Font Pool in the final
* release.
*
******************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "ttconfig.h"
#include "tterror.h"
/* the Print() function is defined in ttconfig.h */
void Message( const char* fmt, ... )
{
va_list ap;
va_start( ap, fmt );
Print( fmt, ap );
va_end( ap );
}
void Panic( const char* fmt, ... )
{
va_list ap;
va_start( ap, fmt );
Print( fmt, ap );
va_end( ap );
exit( 1 );
}
/* End */