1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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