summary refs log blame commit diff stats
path: root/tests/enum/toptions.nim
blob: da66f0067cd7176c8e8d8ad078eb09f7d3ab6b87 (plain) (tree)
1
2
3
4
5
6
7





                                                                         
                                                   










                                                                               
type
  # please make sure we have under 32 options (improves code efficiency!)
  TOption = enum
    optNone, optForceFullMake, optBoehmGC, optRefcGC, optRangeCheck,
    optBoundsCheck, optOverflowCheck, optNilCheck, optAssert, optLineDir,
    optWarns, optHints, optListCmd, optCompileOnly,
    optSafeCode,             # only allow safe code
    optStyleCheck, optOptimizeSpeed, optOptimizeSize, optGenDynLib,
    optGenGuiApp, optStackTrace

  TOptionset = set[TOption]

var
  gOptions: TOptionset = {optRefcGC, optRangeCheck, optBoundsCheck,
    optOverflowCheck, optAssert, optWarns, optHints, optLineDir, optStackTrace}
  compilerArgs: int
  gExitcode: int8