mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-21 14:23:03 +01:00
35 lines
576 B
C++
35 lines
576 B
C++
#include "AssertException.h"
|
|
#include <cstring>
|
|
|
|
namespace UnitTest {
|
|
|
|
AssertException::AssertException(char const* description, char const* filename, int lineNumber)
|
|
: m_lineNumber(lineNumber)
|
|
{
|
|
using namespace std;
|
|
|
|
strcpy(m_description, description);
|
|
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;
|
|
}
|
|
|
|
}
|