builtin: disable the unhandled exception handler, when `-d no_backtrace` is used (#10530)

pull/10533/head
Ekopalypse 2021-06-21 07:01:18 +02:00 committed by GitHub
parent 8f2f377cb1
commit 81fe702b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ fn builtin_init() {
C.setbuf(C.stderr, 0)
}
}
add_unhandled_exception_handler()
$if !no_backtrace ? {
add_unhandled_exception_handler()
}
}
fn print_backtrace_skipping_top_frames(skipframes int) bool {