Allow checking if the serialization tracing is enabled

This commit is contained in:
Zahary Karadjov 2020-05-29 21:32:44 +03:00
parent 16e6bcd16d
commit 501f94ad61
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
const serialization_tracing {.strdefine.} = "" const serialization_tracing {.strdefine.} = ""
const hasSerializationTracing* = serialization_tracing != ""
when serialization_tracing != "": when hasSerializationTracing:
var tracingEnabled* = serialization_tracing in ["yes", "on", "1"] var tracingEnabled* = serialization_tracing in ["yes", "on", "1"]
## TODO ## TODO