home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / ft-beta.zip / freetype / lib / tterror.c < prev    next >
C/C++ Source or Header  |  1997-10-06  |  1KB  |  58 lines

  1. /*******************************************************************
  2.  *
  3.  *  tterror.c
  4.  *
  5.  *    Error number declaration and handling (body).
  6.  *
  7.  *  Copyright 1996, 1997 by
  8.  *  David Turner, Robert Wilhelm, and Werner Lemberg.
  9.  *
  10.  *  This file is part of the FreeType project, and may only be used
  11.  *  modified and distributed under the terms of the FreeType project
  12.  *  license, LICENSE.TXT. By continuing to use, modify or distribute
  13.  *  this file you indicate that you have read the license and
  14.  *  understand and accept it fully.
  15.  *
  16.  *  NOTE:
  17.  *
  18.  *    This component's body only contains the global variable Error
  19.  *    which will most probably move to the Font Pool in the final
  20.  *    release.
  21.  *
  22.  ******************************************************************/
  23.  
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <stdarg.h>
  27.  
  28. #include "ttconfig.h"
  29. #include "tterror.h"
  30.  
  31.   /* the Print() function is defined in ttconfig.h */
  32.  
  33.   void  Message( const char*  fmt, ... )
  34.   {
  35.     va_list  ap;
  36.  
  37.  
  38.     va_start( ap, fmt );
  39.     Print( fmt, ap );
  40.     va_end( ap );
  41.   }
  42.  
  43.  
  44.   void  Panic( const char*  fmt, ... )
  45.   {
  46.     va_list  ap;
  47.  
  48.  
  49.     va_start( ap, fmt );
  50.     Print( fmt, ap );
  51.     va_end( ap );
  52.  
  53.     exit( 1 );
  54.   }
  55.  
  56.  
  57. /* End */
  58.