Fully qualify the HyTypeError reference
No need to import it explicitly, the hy module is available everywhere.
This commit is contained in:
parent
b56f03ed29
commit
06628dbba5
@ -25,12 +25,10 @@
|
|||||||
;;; These macros are the essential hy macros.
|
;;; These macros are the essential hy macros.
|
||||||
;;; They are automatically required everywhere, even inside hy.core modules.
|
;;; They are automatically required everywhere, even inside hy.core modules.
|
||||||
|
|
||||||
(import [hy.compiler [HyTypeError]])
|
|
||||||
|
|
||||||
|
|
||||||
(defmacro macro-error [location reason]
|
(defmacro macro-error [location reason]
|
||||||
"error out properly within a macro"
|
"error out properly within a macro"
|
||||||
`(raise (HyTypeError ~location ~reason)))
|
`(raise (hy.compiler.HyTypeError ~location ~reason)))
|
||||||
|
|
||||||
|
|
||||||
(defmacro defmacro-alias [names lambda-list &rest body]
|
(defmacro defmacro-alias [names lambda-list &rest body]
|
||||||
|
Loading…
Reference in New Issue
Block a user