Changeset 1607 for code/branches/core3
- Timestamp:
- Jun 16, 2008, 11:07:34 PM (16 years ago)
- Location:
- code/branches/core3
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/CMakeLists.txt
r1606 r1607 7 7 OrxonoxClass.cc 8 8 Script.cc 9 SignalHandler.cc10 9 11 10 # command -
code/branches/core3/src/core/CorePrereqs.h
r1606 r1607 62 62 // Forward declarations 63 63 //----------------------------------------------------------------------- 64 class SignalHandler;65 66 64 namespace orxonox 67 65 { -
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__ */ -
code/branches/core3/visual_studio/vc8/core.vcproj
r1606 r1607 172 172 > 173 173 </File> 174 <File175 RelativePath="..\..\src\core\SignalHandler.cc"176 >177 </File>178 174 <Filter 179 175 Name="tolua" … … 358 354 > 359 355 </File> 360 <File361 RelativePath="..\..\src\core\SignalHandler.h"362 >363 </File>364 356 <Filter 365 357 Name="input" -
code/branches/core3/visual_studio/vc8/orxonox.vcproj
r1567 r1607 188 188 > 189 189 </File> 190 <File 191 RelativePath="..\..\src\orxonox\SignalHandler.cc" 192 > 193 </File> 190 194 <Filter 191 195 Name="hud" … … 480 484 <File 481 485 RelativePath="..\..\src\orxonox\Settings.h" 486 > 487 </File> 488 <File 489 RelativePath="..\..\src\orxonox\SignalHandler.h" 482 490 > 483 491 </File>
Note: See TracChangeset
for help on using the changeset viewer.