blob: f27d5a8b89eec9fd2c801d33bf1c578ad445eaab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <cstdarg>
#include "Exception.h"
#include "util/fmt.h"
using namespace std;
using namespace crepe;
const char * Exception::what() {
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);
}
|