Changeset 1607 for code/branches/core3/src/orxonox
- Timestamp:
- Jun 16, 2008, 11:07:34 PM (16 years ago)
- Location:
- code/branches/core3/src/orxonox
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/CMakeLists.txt
r1555 r1607 4 4 Orxonox.cc 5 5 Settings.cc 6 SignalHandler.cc 6 7 7 8 console/InGameConsole.cc -
code/branches/core3/src/orxonox/Main.cc
r1535 r1607 37 37 38 38 #include "util/OrxonoxPlatform.h" 39 #include " core/SignalHandler.h"39 #include "SignalHandler.h" 40 40 #include "Orxonox.h" 41 41 -
code/branches/core3/src/orxonox/SignalHandler.cc
r1605 r1607 32 32 */ 33 33 34 #include "OrxonoxStableHeaders.h" 34 35 #include "SignalHandler.h" 35 36 … … 39 40 SignalHandler * SignalHandler::singletonRef = NULL; 40 41 41 #if ndef __WIN32__42 #if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32 42 43 43 44 #include <wait.h> … … 349 350 } 350 351 351 #endif /* __WIN32__*/352 #endif /* ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 */ -
code/branches/core3/src/orxonox/SignalHandler.h
r1605 r1607 35 35 #define _SignalHandler_H__ 36 36 37 #include " CorePrereqs.h"37 #include "OrxonoxPrereqs.h" 38 38 39 39 #include <list> … … 42 42 typedef int (*SignalCallback)( void * someData ); 43 43 44 #if ndef __WIN32__44 #if ORXONOX_PLATFORM != ORXONOX_PLATFORM_WIN32 45 45 #include <signal.h> 46 46 … … 91 91 }; 92 92 93 #else /* #ifndef __WIN32__*/93 #else /* ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 */ 94 94 95 class _ CoreExport SignalHandler95 class _OrxonoxExport SignalHandler 96 96 { 97 public:98 inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; };99 void doCatch( const std::string & appName, const std::string & fileName ) {};100 void dontCatch() {};101 void registerCallback( SignalCallback cb, void * someData ) {};97 public: 98 inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; }; 99 void doCatch( const std::string & appName, const std::string & fileName ) {}; 100 void dontCatch() {}; 101 void registerCallback( SignalCallback cb, void * someData ) {}; 102 102 103 private:103 private: 104 104 static SignalHandler * singletonRef; 105 105 }; 106 #endif /* #ifndef __WIN32__ */ 106 107 #endif /* ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 */ 107 108 108 109 #endif /* _SignalHandler_H__ */
Note: See TracChangeset
for help on using the changeset viewer.