factor/basis/tools/deploy/shaker/strip-debugger.factor

18 lines
424 B
Factor
Raw Normal View History

USING: compiler.units words vocabs kernel threads.private ;
2007-09-20 18:09:08 -04:00
IN: debugger
: consume ( error -- )
#! We don't want DCE to drop the error before the die call!
drop ;
2007-10-09 02:07:59 -04:00
: print-error ( error -- ) die consume ;
: error. ( error -- ) die consume ;
"threads" vocab [
[
"error-in-thread" "threads" lookup
[ [ die 2drop ] define ] [ f "combination" set-word-prop ] bi
] with-compilation-unit
] when