mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-08 05:27:33 +02:00
Emit add_global2 calls
This commit is contained in:
parent
4fb6530056
commit
7a48e046ad
1 changed files with 7 additions and 3 deletions
|
@ -2132,9 +2132,13 @@
|
||||||
;; Initialize global table
|
;; Initialize global table
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (global)
|
(lambda (global)
|
||||||
(emits "\n add_global((object *) &")
|
(let ((mglo (cgen:mangle-global (car global))))
|
||||||
(emits (cgen:mangle-global (car global)))
|
(emits (string-append
|
||||||
(emits ");"))
|
"\n add_global2(\""
|
||||||
|
mglo
|
||||||
|
"\", (object *) &"))
|
||||||
|
(emits mglo)
|
||||||
|
(emits ");")))
|
||||||
*globals*)
|
*globals*)
|
||||||
(emit "")
|
(emit "")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue