FUtils/FUDebug.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005-2006 Feeling Software Inc.
00003     MIT License: http://www.opensource.org/licenses/mit-license.php
00004 */
00005 
00011 #ifndef _FU_DEBUG_H_
00012 #define _FU_DEBUG_H_
00013 
00016 #define DEBUG_OUT(token) ::DebugOut(__FILE__, __LINE__, token);
00017 
00021 #define DEBUG_OUT1(token, arg1) ::DebugOut(__FILE__, __LINE__, token, arg1);
00022 
00027 #define DEBUG_OUT2(token, arg1, arg2) ::DebugOut(__FILE__, __LINE__, token, arg1, arg2);
00028 
00029 #ifndef _DEBUG
00030 
00033     inline void DebugOut(const char*, ...) {}
00034 #ifdef UNICODE
00035     inline void DebugOut(const fchar*, ...) {} 
00036 #endif // UNICODE
00037 
00041     inline void DebugOutV(const char*, va_list&) {}
00042 #ifdef UNICODE
00043     inline void DebugOutV(const fchar*, va_list&) {} 
00044 #endif // UNICODE
00045 
00049     inline void DebugOut(const char*, uint32, const char*, ...) {}
00050 #ifdef UNICODE
00051     inline void DebugOut(const char*, uint32, const fchar*, ...) {} 
00052 #endif // UNICODE
00053 
00058     inline void DebugOutV(const char*, uint32, const char*, va_list&) {}
00059 #ifdef UNICODE
00060     inline void DebugOutV(const char*, uint32, const fchar*, va_list&) {} 
00061 #endif // UNICODE
00062 
00063 #else // _DEBUG
00064 
00065 #ifdef UNICODE
00066     void FCOLLADA_EXPORT DebugOut(const char* filename, uint32 line, const fchar* message, ...);
00067     void FCOLLADA_EXPORT DebugOut(const fchar* message, ...);
00068     void FCOLLADA_EXPORT DebugOutV(const char* filename, uint32 line, const fchar* message, va_list& vars);
00069     void FCOLLADA_EXPORT DebugOutV(const fchar* message, va_list& vars);
00070 #endif // UNICODE
00071     void FCOLLADA_EXPORT DebugOut(const char* filename, uint32 line, const char* message, ...);
00072     void FCOLLADA_EXPORT DebugOut(const char* message, ...);
00073     void FCOLLADA_EXPORT DebugOutV(const char* filename, uint32 line, const char* message, va_list& vars);
00074     void FCOLLADA_EXPORT DebugOutV(const char* message, va_list& vars);
00075 
00076 #endif // _DEBUG
00077 
00078 #endif // _FU_DEBUG_H_
00079 

Generated on Fri May 12 16:44:39 2006 for FCollada by  doxygen 1.4.6-NO