aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/exception.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-12-14 23:31:06 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-12-14 23:31:06 +0530
commit3d60213c01955e54e8e33b88108b4251197fde86 (patch)
tree7acfca5cd4bf2c4cf738e03cb6d4fd372f02306c /src/cljcc/exception.clj
parent837d5c5d0a2704ebfe48de3799936bf98330e134 (diff)
Add code emission for long type
Finish chapter 11 Fix several bugs caused due to refactoring Add code emission for longs
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 b8b8256..40ea930 100644
--- a/src/cljcc/exception.clj
+++ b/src/cljcc/exception.clj
@@ -16,3 +16,6 @@
(defn compiler-error [msg data]
(throw (ex-info msg (merge {:error/type :compiler} data))))
+
+(defn emit-error [msg data]
+ (throw (ex-info msg (merge {:error/type :emit} data))))