Revision 477, 486 bytes
(checked in by mido, 15 years ago)
|
panove, vite, jak jsem peclivej na upravu kodu.. snad se vam bude libit:) konfigurace je v souboru /system/astylerc
|
Rev | Line | |
---|
[418] | 1 | #ifndef UNITTEST_ASSERTEXCEPTION_H |
---|
| 2 | #define UNITTEST_ASSERTEXCEPTION_H |
---|
| 3 | |
---|
| 4 | #include <exception> |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | namespace UnitTest { |
---|
| 8 | |
---|
[477] | 9 | class AssertException : public std::exception { |
---|
[418] | 10 | public: |
---|
[477] | 11 | AssertException ( char const* description, char const* filename, int lineNumber ); |
---|
| 12 | virtual ~AssertException() throw(); |
---|
[418] | 13 | |
---|
[477] | 14 | virtual char const* what() const throw(); |
---|
[418] | 15 | |
---|
[477] | 16 | char const* Filename() const; |
---|
| 17 | int LineNumber() const; |
---|
[418] | 18 | |
---|
| 19 | private: |
---|
[477] | 20 | char m_description[512]; |
---|
| 21 | char m_filename[256]; |
---|
| 22 | int m_lineNumber; |
---|
[418] | 23 | }; |
---|
| 24 | |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | #endif |
---|