summaryrefslogtreecommitdiff
path: root/src/runtime/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/runtime.c')
-rw-r--r--src/runtime/runtime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c
index 57e257090..fb9bf5cbc 100644
--- a/src/runtime/runtime.c
+++ b/src/runtime/runtime.c
@@ -52,6 +52,12 @@ sys·throwreturn(void)
}
void
+sys·throwinit(void)
+{
+ throw("recursive call during initialization");
+}
+
+void
throw(int8 *s)
{
printf("throw: %s\n", s);