predefined version for "nogc" option
a11e99z
black80 at bk.ru
Mon Sep 2 16:24:25 UTC 2019
I need function that do one thing if GC enabled and other when
disabled.
I filled issue about it, but maybe u can show some trick:
how to determine in code that "nogc" is enabled?
=======================================================
LDC supports command option:
-nogc = Do not allow code that generates implicit garbage
collector calls.
but I cannot find corresponding predefined version in
https://dlang.org/spec/version.html#predefined-versions
need to add version LDC_nogc or D_nogc.
the one should be enabled for -betterC too.
More information about the digitalmars-d-ldc
mailing list