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

ci: workaround for $if prod { not working properly with msvc

This commit is contained in:
Delyan Angelov 2023-01-12 00:02:27 +02:00
parent 00cef70220
commit 131086b647

View File

@ -36,7 +36,11 @@ pub fn slog(const_message &char, user_data voidptr) {
C.fprintf(C.stderr, c'sokol.memory.slog | user_data: %p, message: %s\n', user_data,
const_message)
}
$if !prod {
C.SOKOL_LOG(const_message)
$if msvc {
C.fprintf(C.stderr, c'%s\n', const_message)
} $else {
$if !prod {
C.SOKOL_LOG(const_message)
}
}
}