vee_error.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 /* COPYRIGHT
00004  *
00005  * This file is part of the Visual Effects Engine - VEE
00006  *
00007  * Read the "VEE-LICENSE" file for the license.
00008  *
00009  * Authors & Copyright:   
00010  *
00011  * Tommi Ilmonen, Tuukka Heikura, Marko Myllymaa and 
00012  * Janne Kontkanen 2001-2004
00013  *
00014  * Additional copyrights: Tekes 2003-2004
00015  *
00016  * firstname.lastname@hut.fi
00017  *
00018  */
00019 
00020 #ifndef VEE_ERROR_H
00021 #define VEE_ERROR_H
00022 
00023 #include <vee_config.h>
00024 
00025 void VEE_setTraceStreamLock(void (*function)(bool));
00026 
00027 void VEE_trace(const char *msg, ...);
00028 void VEE_error(const char *msg, ...);
00029 void VEE_fatal(const char *msg, ...);
00030 
00031 #ifdef VEE_FAST
00032 
00033 #define VEE_TRACE(x) 
00034 #define VEE_ERROR(x) 
00035 #define VEE_FATAL(x) 
00036 
00037 #else
00038 
00039 #define VEE_TRACE(x) VEE_trace(x)
00040 #define VEE_ERROR(x) VEE_error(x)
00041 #define VEE_FATAL(x) VEE_fatal(x)
00042 
00043 #endif
00044 
00045 #ifdef __sgi
00046 #define VEE_FNAME static const char * fname = "__FILE__ __LINE__";
00047 #else
00048 #define VEE_FNAME static const char * fname = __FUNCTION__;
00049 #endif
00050 
00051 #endif

Generated on Mon Mar 12 21:09:00 2007 for VEE - The Visual Effects Engine by  doxygen 1.4.6