Logging wrapper.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user