aboutsummaryrefslogtreecommitdiff
path: root/lib/SATS/panic.sats
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-08-06 17:44:45 +0200
committerXander <xander@biltopia.org>2023-08-06 17:44:45 +0200
commitcef3f6bdddfe768e7a1a84edcec76c11c1634941 (patch)
treea7681996224d1d3bf6eeda8657ac500ac061c2d5 /lib/SATS/panic.sats
parent272a40095e7c3f694f010d074ab54b326730009e (diff)
downloadats-os-cef3f6bdddfe768e7a1a84edcec76c11c1634941.tar.xz
ats-os-cef3f6bdddfe768e7a1a84edcec76c11c1634941.zip
Implemented panic
Diffstat (limited to 'lib/SATS/panic.sats')
-rw-r--r--lib/SATS/panic.sats5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/SATS/panic.sats b/lib/SATS/panic.sats
new file mode 100644
index 0000000..123b8da
--- /dev/null
+++ b/lib/SATS/panic.sats
@@ -0,0 +1,5 @@
+staload UN = "prelude/SATS/unsafe.sats"
+
+fun panic_loc (loc: string, msg: string) :<> void
+
+macdef panic(msg) = panic_loc($mylocation, ,(msg))