 |
Quantum Fog
0.9.3
|
7 #define Throw_Err(err) throw (ExceptionCode)(err) 9 #define SetDebugThrow_(inAction) //do nothing 12 cerr<<"Exception Thrown"<<endl; \ 14 cerr<<" Reason: Nil Pointer"<<endl; \ 15 }else if(err=='asrt'){ \ 16 cerr<<" Reason: Assertion Failed"<<endl; \ 18 cerr<<" File: "<<__FILE__<<endl; \ 19 cerr<<" Line: "<<__LINE__<<endl; \ 24 #define SetDebugThrow_(inAction) //do nothing 25 #define Throw_(err) Throw_Err(err) 29 #define SetDebugSignal_(inAction) //do nothing 30 #define SignalCStr_(cstr) \ 32 cerr<<"Signal Raised"<<endl; \ 33 cerr<<" Message: "<<cstr<<endl; \ 34 cerr<<" File: "<<__FILE__<<endl; \ 35 cerr<<" Line: "<<__LINE__<<endl; \ 38 #define SignalIf_(test) \ 40 if (test) SignalCStr_(#test); \ 43 #define SetDebugSignal_(inAction) //do nothing 44 #define SignalCStr_(cstr) //do nothing 45 #define SignalIf_(test) //do nothing 46 #endif // Debug_Signal