tpragmas_misc.nim 385 B

12345678910111213
  1. ##[
  2. tests for misc pragmas that don't need a separate file
  3. ]##
  4. block:
  5. static: doAssert not defined(tpragmas_misc_def)
  6. {.undef(tpragmas_misc_def).} # works even if not set
  7. static: doAssert not defined(tpragmas_misc_def)
  8. {.define(tpragmas_misc_def).}
  9. static: doAssert defined(tpragmas_misc_def)
  10. {.undef(tpragmas_misc_def).}
  11. static: doAssert not defined(tpragmas_misc_def)