mirror of
https://github.com/open-goal/jak-project
synced 2026-06-17 15:17:27 -04:00
[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:
@@ -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)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user