raco decompile: avoid static-generation code
Update the decompiler to avoid hard-coding the static-generation numebr, which changed.
This commit is contained in:
parent
7c8d9c6523
commit
db195a52b5
|
@ -49,12 +49,13 @@
|
|||
(define name (code 'name))
|
||||
(define $generation (vm-eval '($primitive $generation)))
|
||||
(define $code? (vm-eval '($primitive $code?)))
|
||||
(define max-gen (vm-eval '(collect-maximum-generation)))
|
||||
(append
|
||||
(apply
|
||||
append
|
||||
(for/list ([v (in-list ((code 'reloc) 'value))]
|
||||
#:unless (and ($code? v)
|
||||
(= 255 ($generation v))))
|
||||
(($generation v) . > . max-gen)))
|
||||
(decompile-value v seen)))
|
||||
(if unwrap-body?
|
||||
(decompile-code-body code)
|
||||
|
|
Loading…
Reference in New Issue
Block a user