backtrace: fix tcc backtrace windows compilation error (#8348)
parent
c6f98afaba
commit
69c37402d4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue