Mercurial > games > semicongine
changeset 931:8fee76740f95
fix: ugly log-level directive
author | sam <sam@basx.dev> |
---|---|
date | Sun, 24 Mar 2024 16:34:09 +0700 |
parents | 295cf32f883d |
children | c7f37ab146e4 |
files | semicongine/core/buildconfig.nim |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/core/buildconfig.nim Sat Mar 23 22:57:11 2024 +0700 +++ b/semicongine/core/buildconfig.nim Sun Mar 24 16:34:09 2024 +0700 @@ -42,8 +42,8 @@ const CONFIGHOTRELOADINTERVAL* {.intdefine.}: int = 1000 # log level -const LOGLEVEL {.strdefine.}: string = (when DEBUG: "lvlWarn" else: "lvlWarn") -const ENGINE_LOGLEVEL* = parseEnum[Level](LOGLEVEL) +const LOGLEVEL {.strdefine.}: string = "lvlWarn" +const ENGINE_LOGLEVEL* = parseEnum[Level]("lvl" & LOGLEVEL) # resource bundleing settings, need to be configured per project const PACKAGETYPE* {.strdefine.}: string = "" # dir, zip, exe