[Compiler] Add reset-here option to colored and constrained rlet vars (#169)

* add reset-here to clear coloring at entry to rlet

* update doc
This commit is contained in:
water111
2020-12-27 14:21:48 -05:00
committed by GitHub
parent 25301a8bbc
commit c811778d00
11 changed files with 54 additions and 69 deletions
+7 -1
View File
@@ -492,10 +492,16 @@
)
(defmacro suspend ()
`(rlet ((pp :reg r13))
`(rlet ((pp :reg r13 :reset-here #t))
(.push pp)
(set! pp (-> (the process pp) top-thread))
((-> (the cpu-thread pp) suspend-hook) (the cpu-thread 0))
(.pop pp)
)
)
(defmacro process-deactivate ()
`(rlet ((pp :reg r13 :reset-here #t :type process))
(deactivate pp)
)
)