mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
33 lines
634 B
C++
33 lines
634 B
C++
#define _CRT_SECURE_NO_WARNINGS
|
|
#include "AssertException.h"
|
|
#include <cstring>
|
|
|
|
namespace UnitTest {
|
|
|
|
AssertException::AssertException(char const* description, char const* filename, int const lineNumber)
|
|
: m_lineNumber(lineNumber)
|
|
{
|
|
std::strcpy(m_description, description);
|
|
std::strcpy(m_filename, filename);
|
|
}
|
|
|
|
AssertException::~AssertException() throw()
|
|
{
|
|
}
|
|
|
|
char const* AssertException::what() const throw()
|
|
{
|
|
return m_description;
|
|
}
|
|
|
|
char const* AssertException::Filename() const
|
|
{
|
|
return m_filename;
|
|
}
|
|
|
|
int AssertException::LineNumber() const
|
|
{
|
|
return m_lineNumber;
|
|
}
|
|
|
|
}
|