author | Alan Dipert
<alan@dipert.org> 2020-01-14 04:08:38 UTC |
committer | Alan Dipert
<alan@dipert.org> 2020-01-14 04:08:38 UTC |
parent | cadb1a51a4d9b2a55db242dbf4f89e0ba489fa9a |
boot.lisp | +7 | -4 |
diff --git a/boot.lisp b/boot.lisp index e772950..8adb06f 100644 --- a/boot.lisp +++ b/boot.lisp @@ -18,10 +18,7 @@ ,@body)) ',name))) -(defun %export (symbol) - (\. *package* (|exportSymbol| (\. symbol |name|)))) - -(%export 'defun) +(\. *package* (|exportSymbol| (\. 'defun |name|))) (defmacro defun (name params &rest body) `(jacl:%progn (jacl:%js "(~{}.fvalue = ~{})" @@ -29,6 +26,12 @@ (jacl:%lambda ,params ,@body)) ',name)) +(defun %export (symbol) + (\. *package* (|exportSymbol| (\. symbol |name|)))) + +(defun %instanceof (obj ctor) + (%js "(~{} instanceof ~{})" obj ctor)) + (%export 'set) (defun set (symbol value) (%js "(~{}.value = ~{})" symbol value))