I use this hack:
when not defined IS_SUPPORT_IMPORTED:
var IS_SUPPORT_IMPORTED {.compileTime.} : bool = true
But nim (I use nimble package/project manager) complain about IS_SUPPORT_IMPORTED is defined twice.
/home/postep2/src/posteppkg/utility/includes/support.nim(20, 7) Error: redefinition of 'IS_SUPPORT_IMPORTED'; previous declaration here: /home/postep2/src/posteppkg/utility/includes/support.nim(20, 7)