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

sokol.memory: fix message logs on Android

This commit is contained in:
Delyan Angelov 2023-01-11 16:37:20 +02:00
parent 3f8aa77990
commit d9339b09d6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -29,10 +29,12 @@ pub fn sfree(ptr voidptr, user_data voidptr) {
unsafe { free(ptr) }
}
fn C.SOKOL_LOG(const_message &char)
pub fn slog(const_message &char, user_data voidptr) {
$if trace_sokol_memory ? {
C.fprintf(C.stderr, c'sokol.memory.slog | user_data: %p, message: %s\n', user_data,
const_message)
}
C.puts(const_message)
C.SOKOL_LOG(const_message)
}