Expects changed to not do anything in a Release build

This commit is contained in:
Mateusz Pusz
2019-09-10 20:23:10 +02:00
parent 497a13da1a
commit 8587d5350d

View File

@@ -23,10 +23,13 @@
#pragma once #pragma once
#include <experimental/ranges/concepts> #include <experimental/ranges/concepts>
#include <exception>
#ifdef NDEBUG
#define Expects(cond) if(!(cond)) ::std::terminate(); #define Expects(cond) (void)(cond);
#else
#include <cassert>
#define Expects(cond) assert(cond);
#endif
namespace std { namespace std {