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:
parent
c6f98afaba
commit
69c37402d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user