From 64db53ff04037b0cb583f539b5e600f7336474b2 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Mon, 28 Nov 2016 21:50:49 +0100 Subject: [PATCH] Implement -assert=[on|off] to enable/disable asserts on demand --- src/mars.d | 15 +++++++++++++++ test/runnable/assert_switch_off.d | 10 ++++++++++ test/runnable/assert_switch_on.d | 13 +++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 test/runnable/assert_switch_off.d create mode 100644 test/runnable/assert_switch_on.d diff --git a/src/mars.d b/src/mars.d index b1732406f159..d84c8d1026a9 100644 --- a/src/mars.d +++ b/src/mars.d @@ -103,6 +103,7 @@ Where: