mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
Expects changed to not do anything in a Release build
This commit is contained in:
@@ -23,10 +23,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <experimental/ranges/concepts>
|
||||
#include <exception>
|
||||
|
||||
|
||||
#define Expects(cond) if(!(cond)) ::std::terminate();
|
||||
#ifdef NDEBUG
|
||||
#define Expects(cond) (void)(cond);
|
||||
#else
|
||||
#include <cassert>
|
||||
#define Expects(cond) assert(cond);
|
||||
#endif
|
||||
|
||||
namespace std {
|
||||
|
||||
|
Reference in New Issue
Block a user