impc:aot:insert-forms   macro


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

;; insert arbitrary sexp into the AOT-compilation
;; file, otherwise do nothing
(define-macro (impc:aot:insert-forms . forms)
  (if (output-port? *impc:aot:current-output-port*)
      `(begin
         ,@(map (lambda (sexp)
                  `(begin (write ',sexp *impc:aot:current-output-port*)
                          (newline *impc:aot:current-output-port*)))
                forms))))


Back to Index