cesium-native
0.43.0
Loading...
Searching...
No Matches
Assert.h
1
#pragma once
2
3
#include <cstdint>
4
5
//
6
// Define our own assertion, so that users can forcebly turn them on if needed
7
//
8
#if defined CESIUM_FORCE_ASSERTIONS && defined NDEBUG
9
// Asserts are defined in cassert and normally compiled out when NDEBUG is
10
// defined. Redirect to our own assertion that can't be compiled out
11
namespace
CesiumUtility
{
12
std::int32_t forceAssertFailure();
13
};
14
#define CESIUM_ASSERT(expression) \
15
((expression) ? 0 : CesiumUtility::forceAssertFailure())
16
#else
17
// Let assertions get defined with default behavior
18
#include <cassert>
19
#define CESIUM_ASSERT(expression) assert(expression)
20
#endif
CesiumUtility
Utility classes for Cesium.
Definition
TilesetExternals.h:17
CesiumUtility
include
CesiumUtility
Assert.h
Generated by
1.12.0