Custom log function logLevel.

This commit is contained in:
jussi
2022-06-19 20:38:50 +03:00
parent 1529202e26
commit 6bac1a2c63
4 changed files with 22 additions and 12 deletions

View File

@@ -80,6 +80,12 @@ local function createMap()
tilemap.tiles[1][8] = 6
end
function log( logLevel, message )
if logLevel == LOG_WARNING then
error( "Terminated because of warning" )
end
end
function init()
local monitorPos = Vec2:new( RL_GetMonitorPosition( monitor ) )
local monitorSize = Vec2:new( RL_GetMonitorSize( monitor ) )