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 no_backtrace ? {
eprintln('backtraces are disabled')
return false
} $else {
C.tcc_backtrace('Backtrace')
return false
return true
}
} $else {
eprintln('print_backtrace_skipping_top_frames_tcc must be called only when the compiler is tcc')
return false
}
// Not reachable, but it looks like it's not detectable by V
return false
}
// TODO copypaste from os