impc:compiler:print-no-retval-error   scheme


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

Implementation

(define impc:compiler:print-no-retval-error
  (lambda (ast)
    (print-with-colors *impc:compiler:pretty-print-error-color*
                       'default #t (print "Syntax Error"))
    (print " no return value for body: ")
    (print-with-colors *impc:compiler:pretty-print-code-color* 'default #f (print ast "\n"))
    (if (impc:aot:currently-compiling?)
        (quit 2)
        (throw ""))))


Back to Index