KTL
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
assert.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#if defined(_WIN32)
// Windows
6
#define KTL_BREAKPOINT() __debugbreak()
7
#elif defined(__linux__)
// Linux
8
#include <csignal>
9
#define KTL_BREAKPOINT() std::raise(SIGTRAP)
10
#else
// Non-supported
11
#define KTL_BREAKPOINT()
12
#endif
13
14
#ifdef KTL_DEBUG_ASSERT
15
#define KTL_ASSERT(x) if (!(x)) { KTL_BREAKPOINT(); }
16
#else
17
#define KTL_ASSERT(x)
18
#endif
include
ktl
utility
assert.h
Generated by
1.9.8