Issue #101 - Include an extra ; to prevent errors

Include an extra semicolon in the C entry point to prevent it from missing in cases where one is no normally inserted, such as for non-cps primitives or constants. This prevents C compilation errors in edge cases.
This commit is contained in:
Justin Ethier 2016-08-11 23:50:43 -04:00
parent 4d5a1cc076
commit 5dceed4e2d

View file

@ -1310,7 +1310,8 @@
(emit "}")
(emit "static void c_entry_pt_first_lambda(void *data, int argc, closure cont, object value) {")
; DEBUG (emit (string-append "printf(\"init first lambda\\n\");"))
(emit compiled-program)))
(emit compiled-program)
(emit ";")))
(else
;; Do not use closcall1 macro as it might not have been defined
(emit "cont = ((closure1_type *)cont)->element;")