aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/exception.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-11-09 17:27:35 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-11-09 17:27:35 +0530
commit7140310b4cc538d12c1d1285ce96792aa619adcf (patch)
treee875b48d9061c8e159ac2bb3a6befb9694bf0303 /src/cljcc/exception.clj
parent298a29f7b73fa3b34213ffae2c4c101a9d283ac5 (diff)
Add codegen for storage class specifiers
Switch map/filter to eager versions
Diffstat (limited to 'src/cljcc/exception.clj')
-rw-r--r--src/cljcc/exception.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cljcc/exception.clj b/src/cljcc/exception.clj
index 9ea5f31..bf98ed4 100644
--- a/src/cljcc/exception.clj
+++ b/src/cljcc/exception.clj
@@ -10,3 +10,6 @@
(defn analyzer-error [msg data]
(throw (ex-info msg (merge {:error/type :analyzer} data))))
+
+(defn compiler-error [msg data]
+ (throw (ex-info msg (merge {:error/type :compiler} data))))