blob: bfdbcddb8cc2e0d43ce32b86d9e18b2b786b33db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <cstdarg>
#include "Exception.h"
#include "util/fmt.h"
using namespace std;
using namespace crepe;
const char * Exception::what() const noexcept { return error.c_str(); }
Exception::Exception(const char * fmt, ...) {
va_list args;
va_start(args, fmt);
this->error = va_stringf(args, fmt);
va_end(args);
}
|