summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-04-07 13:40:57 +0200
committerGitHub <noreply@github.com>2021-04-07 13:40:57 +0200
commit939df8cbdaf8b65966c60b4e368ba317cf4d194f (patch)
tree7003001c7e71780ae3f8d5799a4fd4650f626ba8 /lib/system
parentd3702a4dc3f4226ae601f503bc3f2244f9e1bdce (diff)
downloadNim-939df8cbdaf8b65966c60b4e368ba317cf4d194f.tar.gz
ensure the avr example keeps compiling (#17663)
* ensure the avr example keeps compiling

* Update tests/avr/thello.nim

* now compiles properly
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/embedded.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system/embedded.nim b/lib/system/embedded.nim
index 258558c3f..e0b053c7b 100644
--- a/lib/system/embedded.nim
+++ b/lib/system/embedded.nim
@@ -34,6 +34,10 @@ proc quitOrDebug() {.noreturn, importc: "abort", header: "<stdlib.h>", nodecl.}
 proc raiseException(e: ref Exception, ename: cstring) {.compilerRtl.} =
   sysFatal(ReraiseDefect, "exception handling is not available")
 
+proc raiseExceptionEx(e: sink(ref Exception), ename, procname, filename: cstring,
+                      line: int) {.compilerRtl.} =
+  sysFatal(ReraiseDefect, "exception handling is not available")
+
 proc reraiseException() {.compilerRtl.} =
   sysFatal(ReraiseDefect, "no exception to reraise")