Fix the C++ exception struct in nimbase.h.

The struct NimException still referred to the old exception type
E_Base, which has since been renamed to Exception. This made the
C++ backend fail on any code that used exceptions.
This commit is contained in:
Reimer Behrends 2014-09-21 18:30:03 +02:00
commit 80255d8889

View file

@ -175,9 +175,9 @@ __clang__
# define NIM_NIL 0 # define NIM_NIL 0
struct NimException struct NimException
{ {
NimException(struct E_Base* exp, const char* msg): exp(exp), msg(msg) {} NimException(struct Exception* exp, const char* msg): exp(exp), msg(msg) {}
struct E_Base* exp; struct Exception* exp;
const char* msg; const char* msg;
}; };
#else #else