blob: dab8f2eaac9d814cd7ff188bbaacb3423b479b11 (
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() { 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);
}
 
  |