From 80255d88893beb28a930d1ffe0ad25fc1905d6bf Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Sun, 21 Sep 2014 18:30:03 +0200 Subject: 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. --- lib/nimbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nimbase.h b/lib/nimbase.h index b43094227..f49855076 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -175,9 +175,9 @@ __clang__ # define NIM_NIL 0 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; }; #else -- cgit 1.4.1-2-gfad0