Changeset 146 for trunk/IPs/systemC/processor/Morpheo/Common/include
- Timestamp:
- Feb 1, 2011, 9:57:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/ErrorMorpheo.h
r138 r146 18 18 namespace morpheo { 19 19 20 #define ERRORMORPHEO(funcname,msg) ErrorMorpheo(funcname,msg,__LINE__,__FILE__) 20 #define ERRORMORPHEO(funcname,msg) \ 21 ErrorMorpheo(funcname,msg,__LINE__,__FILE__) 21 22 23 #define THROW_ERRORMORPHEO(cond,funcname,msg) \ 24 do \ 25 { \ 26 if (cond) \ 27 { \ 28 throw ERRORMORPHEO(funcname,msg); \ 29 } \ 30 } \ 31 while (0) 32 22 33 class ErrorMorpheo : public std::exception 23 34 { … … 46 57 }; 47 58 48 // class TestMorpheo : public std::exception49 // {50 // // -----[ fields ]----------------------------------------------------51 // private : std::string _msg;52 53 // // -----[ methods ]---------------------------------------------------54 // public : TestMorpheo () throw() {_msg=_("Test error ...");}55 // public : TestMorpheo (std::string msg) throw() {_msg=msg;}56 // public : ~TestMorpheo (void) throw() {}57 // public : const char* what () const throw() { return ( _msg.c_str() );}58 // };59 60 59 }; // end namespace morpheo 61 60
Note: See TracChangeset
for help on using the changeset viewer.