• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

debug.h

00001 #ifndef debug_h
00002 #define debug_h
00003 
00004 /*+
00005 ________________________________________________________________________
00006 
00007  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
00008  Author:        A.H.Lammertink
00009  Date:          Jun 2003
00010  RCS:           $Id: debug.h,v 1.14 2009-07-22 16:01:13 cvsbert Exp $
00011 ________________________________________________________________________
00012 
00013 -*/
00014 
00015 #include "gendefs.h"  
00016  
00036 # ifdef __cpp__
00037 namespace DBG
00038 {
00039     mGlobal bool isOn( int flag=0xffff ); 
00040 
00041     mGlobal void message( const char* );                    // default: to stderr
00042     mGlobal void message( int flag, const char* msg ); 
00043 // { if ( isOn(flag) ) message(msg); }
00044     mGlobal void putProgInfo(int,char**);                   
00045     mGlobal void forceCrash(bool withdump); 
00046 };
00047 
00048 extern "C" {
00049 # endif
00050 
00051     mGlobal int od_debug_isOn( int flag );
00052     mGlobal void od_debug_message( const char* msg );
00053     mGlobal void od_debug_messagef( int flag, const char* msg );
00054     mGlobal void od_debug_putProgInfo(int,char**);
00055     mGlobal void od_putProgInfo(int,char**);
00056 
00057 # ifdef __cpp__
00058 }
00059 # endif
00060 #endif

Generated on Tue Nov 30 2010 for Basic by  doxygen 1.7.1