wren
Vulkan-based game engine
Loading...
Searching...
No Matches
macros.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cassert>
4
5#define WREN_STATEMENT_BEGIN do {
6#define WREN_STATEMENT_END \
7 } \
8 while (false);
9
10#define LINEIZE_(n, line) n##line
11#define LINEIZE(n, line) LINEIZE_(n, line)
12
13#define STATEMENT_MACRO_START while (false) {
14#define STATEMENT_MACRO_END }
15
16#ifdef WREN_DEBUG
17#define WREN_ASSERT(expr, msg) assert(expr && (msg));
18#else
19#define WREN_ASSERT(expr, msg)
20#endif