Iros
 
Loading...
Searching...
No Matches
assert_bool.h
Go to the documentation of this file.
1#pragma once
2
6
7#define DI_ASSERT(...) \
8 do { \
9 if (!bool(__VA_ARGS__)) { \
10 ::di::assert::detail::assert_fail("" #__VA_ARGS__, nullptr, nullptr, \
11 ::di::util::SourceLocation::current()); \
12 } \
13 } while (0)
14
15#if !defined(DI_NO_GLOBALS) && !defined(DI_NO_GLOBAL_ASSERT)
16#define ASSERT DI_ASSERT
17#endif