debug.h

Go to the documentation of this file.
00001 
00010 /*
00011  *  Copyright (c) 2003, Matt Beard
00012  *
00013  *  This software is provided 'as-is', without any express or implied warranty.
00014  *  In no event will the authors be held liable for any damages arising from
00015  *  the use of this software.
00016  *
00017  *  Permission is granted to anyone to use this software for any purpose,
00018  *  including commercial applications, and to alter it and redistribute it
00019  *  freely, subject to the following restrictions:
00020  *
00021  *    1. The origin of this software must not be misrepresented; you must
00022  *       not claim that you wrote the original software. If you use this
00023  *       software in a product, an acknowledgment in the product
00024  *       documentation would be appreciated but is not required.
00025  *  
00026  *    2. Altered source versions must be plainly marked as such, and must
00027  *       not be misrepresented as being the original software.
00028  *  
00029  *    3. This notice may not be removed or altered from any source
00030  *       distribution.
00031  */
00032 
00033 #ifndef MXFLIB__DEBUG_H
00034 #define MXFLIB__DEBUG_H
00035 
00036 // Define this value here, or on the compiler command line to enable debug() function
00037 #define MXFLIB_DEBUG
00038 
00039 namespace mxflib
00040 {
00041 #ifdef MXFLIB_DEBUG
00042     void debug(const char *Fmt, ...);                       
00043 #else
00044     inline void debug(const char *Fmt, ...) { return; };    
00045 #endif
00046 
00047     void warning(const char *Fmt, ...);                     
00048     void error(const char *Fmt, ...);                       
00049 }
00050 
00051 #endif // MXFLIB__DEBUG_H

Generated on Mon Apr 2 15:20:51 2007 for MXFLib by  doxygen 1.5.1-p1