summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-12-19 18:06:28 +0100
committerAraq <rumpf_a@web.de>2018-12-19 18:06:28 +0100
commitc129107b32528a39d82a0459f8c22ab68fc70a43 (patch)
treee39760c130f30aae4f3bb385723f3e2e6e83d75b
parentf7d0e5c1d1cfdf3b00ea464dc30c9fe96dcfad95 (diff)
downloadNim-c129107b32528a39d82a0459f8c22ab68fc70a43.tar.gz
make nimrtl.dll compile for the C++ target
-rw-r--r--compiler/ccgtypes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim
index 266f63647..2d1b884c0 100644
--- a/compiler/ccgtypes.nim
+++ b/compiler/ccgtypes.nim
@@ -544,7 +544,7 @@ proc getRecordDesc(m: BModule, typ: PType, name: Rope,
         appcg(m, result, "virtual void raise() {throw *this;}$n") # required for polymorphic exceptions
         if typ.sym.magic == mException:
           # Add cleanup destructor to Exception base class
-          appcg(m, result, "~$1() {if(this->raiseId) popCurrentExceptionEx(this->raiseId);}$n", [name])
+          appcg(m, result, "~$1() {if(this->raiseId) #popCurrentExceptionEx(this->raiseId);}$n", [name])
           # hack: forward declare popCurrentExceptionEx() on top of type description,
           # proper request to generate popCurrentExceptionEx not possible for 2 reasons:
           # generated function will be below declared Exception type and circular dependency