Logging wrapper.

This commit is contained in:
2026-07-10 08:37:04 +02:00
parent fee8d3cc04
commit 445b451fcd
+26
View File
@@ -0,0 +1,26 @@
// -----------------------------------------------------------------------------
// Logger
//
// Responsible for logging messages from the engine and game.
// -----------------------------------------------------------------------------
package game
import rl "vendor:raylib"
log_debug :: proc(str: cstring) {
if DEBUG_MODE {
rl.TraceLog(.DEBUG, str)
}
}
log_info :: proc(str: cstring) {
rl.TraceLog(.INFO, str)
}
log_warning :: proc(str: cstring) {
rl.TraceLog(.WARNING, str)
}
log_error :: proc(str: cstring) {
rl.TraceLog(.ERROR, str)
}