MeVisLabToolboxReference
MeVis/Foundation/Sources/OSXSupport/macDebug.h
Go to the documentation of this file.
00001 // **InsertLicense** code author="Felix Ritter" version="1.0"
00002 
00006 
00007 #ifndef __macDebug_H
00008 #define __macDebug_H
00009 #if defined(__APPLE__)
00010 
00011 #include <string>
00012 
00013 namespace macx {
00014   
00016   class Debug
00017   {
00018   public:
00019       
00021     static void log(const char *format, ...);
00022     
00023     typedef void (*NSLogMessageHandler) (const char *message);
00024     
00025     static void setNSLogMessageHandler(NSLogMessageHandler func);
00026     static void resetNSLogMessageHandler();
00027   };
00028   
00029 }
00030 
00031 #endif  // __APPLE__
00032 #endif  // __macDebug_H