From 80d363bc59320a410093783d9748b22955b72666 Mon Sep 17 00:00:00 2001 From: Able Date: Fri, 1 Nov 2024 15:11:33 -0500 Subject: [PATCH] panic func in stn --- sysdata/libraries/stn/src/panic.hb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sysdata/libraries/stn/src/panic.hb diff --git a/sysdata/libraries/stn/src/panic.hb b/sysdata/libraries/stn/src/panic.hb new file mode 100644 index 00000000..eddf15a8 --- /dev/null +++ b/sysdata/libraries/stn/src/panic.hb @@ -0,0 +1,8 @@ +panic := fn(message: ?^u8): void { + if message != null { + log.error(message) + } + // TODO: replace with die keyword when it gets pushed + loop { + } +} \ No newline at end of file