Revision 477, 0.6 kB
(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 | #include "AssertException.h" |
---|
| 2 | #include <cstring> |
---|
| 3 | |
---|
| 4 | namespace UnitTest { |
---|
| 5 | |
---|
[477] | 6 | AssertException::AssertException ( char const* description, char const* filename, int lineNumber ) |
---|
| 7 | : m_lineNumber ( lineNumber ) { |
---|
[418] | 8 | using namespace std; |
---|
| 9 | |
---|
[477] | 10 | strcpy ( m_description, description ); |
---|
| 11 | strcpy ( m_filename, filename ); |
---|
[418] | 12 | } |
---|
| 13 | |
---|
[477] | 14 | AssertException::~AssertException() throw() { |
---|
[418] | 15 | } |
---|
| 16 | |
---|
[477] | 17 | char const* AssertException::what() const throw() { |
---|
| 18 | return m_description; |
---|
[418] | 19 | } |
---|
| 20 | |
---|
[477] | 21 | char const* AssertException::Filename() const { |
---|
| 22 | return m_filename; |
---|
[418] | 23 | } |
---|
| 24 | |
---|
[477] | 25 | int AssertException::LineNumber() const { |
---|
| 26 | return m_lineNumber; |
---|
[418] | 27 | } |
---|
| 28 | |
---|
| 29 | } |
---|