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