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

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

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