mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
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:
parent
4d5a1cc076
commit
5dceed4e2d
1 changed files with 2 additions and 1 deletions
|
@ -1310,7 +1310,8 @@
|
||||||
(emit "}")
|
(emit "}")
|
||||||
(emit "static void c_entry_pt_first_lambda(void *data, int argc, closure cont, object value) {")
|
(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\");"))
|
; DEBUG (emit (string-append "printf(\"init first lambda\\n\");"))
|
||||||
(emit compiled-program)))
|
(emit compiled-program)
|
||||||
|
(emit ";")))
|
||||||
(else
|
(else
|
||||||
;; Do not use closcall1 macro as it might not have been defined
|
;; Do not use closcall1 macro as it might not have been defined
|
||||||
(emit "cont = ((closure1_type *)cont)->element;")
|
(emit "cont = ((closure1_type *)cont)->element;")
|
||||||
|
|
Loading…
Add table
Reference in a new issue