Ensure libraries are initialized in the right order

This commit is contained in:
Justin Ethier 2015-05-22 21:41:39 -04:00
parent ad9f8aabb8
commit 23096cd3b5

View file

@ -1074,7 +1074,7 @@
", c_" (lib:name->string lib-name) "_entry_pt"
", &" prev-clo ");")
)
required-libs)
(reverse required-libs)) ;; Init each lib's dependencies 1st
(emit*
;; Start cont chain, but do not assume funcall1 macro was defined
"(" this-clo ".fn)(0, &" this-clo ", &" this-clo ");")