![]() |
|
|||
File indexing completed on 2025-08-03 08:19:36
0001 /* This software is distributed under the GNU Lesser General Public License */ 0002 //========================================================================== 0003 // 0004 // debug.h - Functions, which are useful for debugging 0005 // 0006 //========================================================================== 0007 // $Id: debug.h,v 1.8 2001/10/10 08:30:00 chris Exp $ 0008 0009 #ifndef GTL_DEBUG_H 0010 #define GTL_DEBUG_H 0011 0012 #include <GTL/GTL.h> 0013 0014 #include <iostream> 0015 0016 __GTL_BEGIN_NAMESPACE 0017 0018 // 0019 // If _DEBUG is defined the funtions defined here will produce output. 0020 // You can either define _DEBUG here (or undef it) or you can set it as 0021 // option of your compiler. 0022 // 0023 //#define _DEBUG 1 0024 //#undef _DEBUG 0025 // 0026 0027 /** 0028 * @internal 0029 */ 0030 class GTL_EXTERN GTL_debug { 0031 public: 0032 static void debug_message (const char*, ...); 0033 static void init_debug(); 0034 static void close_debug(); 0035 static ostream& os () 0036 { return *GTLerr; } 0037 0038 private: 0039 static ostream* GTLerr; 0040 }; 0041 0042 __GTL_END_NAMESPACE 0043 0044 #endif // GTL_DEBUG_H 0045 0046 //-------------------------------------------------------------------------- 0047 // end of file 0048 //--------------------------------------------------------------------------
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |