backtrace: fix tcc backtrace windows compilation error (#8348)

pull/8353/head
Major Taylor 2021-01-26 01:26:54 -05:00 committed by GitHub
parent c6f98afaba
commit 69c37402d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -182,14 +182,17 @@ fn print_backtrace_skipping_top_frames_tcc(skipframes int) bool {
$if tinyc { $if tinyc {
$if no_backtrace ? { $if no_backtrace ? {
eprintln('backtraces are disabled') eprintln('backtraces are disabled')
return false
} $else { } $else {
C.tcc_backtrace('Backtrace') C.tcc_backtrace('Backtrace')
return false return true
} }
} $else { } $else {
eprintln('print_backtrace_skipping_top_frames_tcc must be called only when the compiler is tcc') eprintln('print_backtrace_skipping_top_frames_tcc must be called only when the compiler is tcc')
return false return false
} }
// Not reachable, but it looks like it's not detectable by V
return false
} }
// TODO copypaste from os // TODO copypaste from os