OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
rbeAssert.h
Go to the documentation of this file.
1/*
2 * File: rbeAssert.h
3 * Package: rbeCore
4 *
5 * Created on: November 12, 2021
6 * Author: Alexander Kuester
7 * Copyright (c) 2021 Alexander Kuester
8 * This file is part of the RubberbandEngine package.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 */
12
13#pragma once
14
15#include <cassert>
16
17#ifdef _DEBUG
18#define rbeAssert(___expression, ___message) (void)((!!(___expression)) || (_wassert(_CRT_WIDE(#___expression) L"\n\n" _CRT_WIDE(___message), _CRT_WIDE(__FILE__), (unsigned)__LINE__), 0))
19#else
20#define rbeAssert(___expression, ___message)
21#endif // _DEBUG