Skip to content

Commit

Permalink
Define D_NoBoundsChecks if -noboundscheck is passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Sep 2, 2012
1 parent 866eaef commit 45cd76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mars.c
Expand Up @@ -1012,6 +1012,8 @@ int tryMain(int argc, char *argv[])
VersionCondition::addPredefinedGlobalIdent("unittest");
if (global.params.useAssert)
VersionCondition::addPredefinedGlobalIdent("assert");
if (noboundscheck)
VersionCondition::addPredefinedGlobalIdent("D_NoBoundsChecks");
#endif

// Initialization
Expand Down

0 comments on commit 45cd76e

Please sign in to comment.