YOrch 1.0.0
Loading...
Searching...
No Matches
assert.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cassert>
4
5// YOrch uses a library-scoped assertion macro so consumers can configure
6// contract checks consistently for both compiled and header-only targets.
7#if defined(YORCH_ENABLE_ASSERTS) && YORCH_ENABLE_ASSERTS
8#define YORCH_ASSERT(condition) assert(condition)
9#else
10#define YORCH_ASSERT(condition) static_cast<void>(0)
11#endif