Skip to content

Commit

Permalink
Merge pull request #960 from WalterBright/sort-switch
Browse files Browse the repository at this point in the history
move -boundscheck into sorted position
  • Loading branch information
CyberShadow committed Apr 6, 2015
2 parents 7bddfe3 + 1a303c6 commit 0bf3ed1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions dcompiler.dd
Expand Up @@ -383,6 +383,19 @@ $(WINDOWS
with the hash symbol ($(CODE #)).
)

$(SWITCH $(B -boundscheck=[on|safeonly|off]),
controls if bounds checking is enabled.
$(UL
$(LI $(B on): Bounds checks are enabled for all code. This is the default.)
$(LI $(B safeonly): Bounds checks are enabled only in $(D @safe) code.
This is the default for $(B -release) builds.)
$(LI $(B off): Bounds checks are disabled completely (even in $(D @safe)
code). This option should be used with caution and as a
last resort to improve performance. Confirm turning off
$(D @safe) bounds checks is worthwhile by benchmarking.)
)
)

$(SWITCH $(B -c),
compile only, do not link
)
Expand Down Expand Up @@ -623,19 +636,6 @@ dmd -cov -unittest myprog.d
generate a .map file
)

$(SWITCH $(B -boundscheck=[on|safeonly|off]),
controls if bounds checking is enabled.
$(UL
$(LI $(B on): Bounds checks are enabled for all code. This is the default.)
$(LI $(B safeonly): Bounds checks are enabled only in $(D @safe) code.
This is the default for $(B -release) builds.)
$(LI $(B off): Bounds checks are disabled completely (even in $(D @safe)
code). This option should be used with caution and as a
last resort to improve performance. Confirm turning off
$(D @safe) bounds checks is worthwhile by benchmarking.)
)
)

$(SWITCH $(B -noboundscheck),
turns off all array bounds checking, even for safe functions. $(RED Deprecated
(use $(B -boundscheck=off) instead).)
Expand Down

0 comments on commit 0bf3ed1

Please sign in to comment.