mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix VUNREACHABLE on freebsd/tcc
This commit is contained in:
@@ -116,6 +116,7 @@ fn exec(s string) string {
|
|||||||
fn measure(cmd string, description string) int {
|
fn measure(cmd string, description string) int {
|
||||||
println(' Measuring $description')
|
println(' Measuring $description')
|
||||||
println(' Warming up...')
|
println(' Warming up...')
|
||||||
|
println(cmd)
|
||||||
for _ in 0 .. 3 {
|
for _ in 0 .. 3 {
|
||||||
exec(cmd)
|
exec(cmd)
|
||||||
}
|
}
|
||||||
|
@@ -200,6 +200,9 @@ const c_common_macros = '
|
|||||||
#ifndef VUNREACHABLE
|
#ifndef VUNREACHABLE
|
||||||
#define VUNREACHABLE() do { } while (0)
|
#define VUNREACHABLE() do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__FreeBSD__) && defined(__TINYC__)
|
||||||
|
#define VUNREACHABLE() do { } while (0)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//likely and unlikely macros
|
//likely and unlikely macros
|
||||||
|
Reference in New Issue
Block a user