Add an easier way to enable the serializaton tracing

This commit is contained in:
Zahary Karadjov 2020-05-22 15:20:24 +03:00
parent 8a013591bd
commit 8a25451fce
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
when defined(serialization_tracing):
var tracingEnabled* = false
const serialization_tracing {.strdefine.} = ""
when serialization_tracing != "":
var tracingEnabled* = serialization_tracing in ["yes", "on", "1"]
## TODO
## Implement a tracing context object that will be