root/library/tests/unittest-cpp/AssertException.cpp @ 699

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
4namespace UnitTest {
5
6AssertException::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
14AssertException::~AssertException() throw() {
15}
16
17char const* AssertException::what() const throw() {
18        return m_description;
19}
20
21char const* AssertException::Filename() const {
22        return m_filename;
23}
24
25int AssertException::LineNumber() const {
26        return m_lineNumber;
27}
28
29}
Note: See TracBrowser for help on using the browser.