VCCC  2024.05
VisualCamp Common C++ library
assert.hpp File Reference
#include <cassert>

Go to the source code of this file.

Macros

#define EXPECTS(expr, msg)   ASSERT_IMPL(expr, msg)
 
#define ENSURES(expr, msg)   ASSERT_IMPL(expr, msg)
 
#define BOUNDS_ASSERT(index, size)   EXPECTS((index) < (size), "index out of bounds")
 
#define ALWAYS_ASSERT(msg)   ASSERT_IMPL(false, msg)