?do_heavy_checks ?(enforce_no_new_aliases=true)
?(watch_statuses=fun _ _ -> ()) lexicon_status grafite_status str cb
=
+ let matita_debug = Helm_registry.get_bool "matita.debug" in
let rec loop lexicon_status grafite_status statuses =
let loop =
if first_statement_only then fun _ _ statuses -> statuses
in
watch_statuses lexicon_status grafite_status ;
false, lexicon_status, grafite_status, (new_statuses @ statuses))
- with exn when (not (Helm_registry.get_bool "matita.debug")) ->
+ with exn when not matita_debug ->
raise (EnrichedWithLexiconStatus (exn, lexicon_status))
in
if stop then s else loop l g s