blob: a1fa7656a0eb387e92dccdd45a082e4e1a516f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#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);
}
|