xtd 0.2.0
Loading...
Searching...
No Matches
__xtd_debugbreak.hpp
Go to the documentation of this file.
1
3#pragma once
5#if !defined(__XTD_CORE_INTERNAL__)
6#error "Do not include this file: Internal use only"
7#endif
9
11#if defined(_MSC_VER)
12#define __xtd_debugbreak __debugbreak
13#elif defined(__clang__) || defined(__GNUC__)
14#define __xtd_debugbreak __builtin_trap
15#else
16#include <cstdlib>
17#define __xtd_debugbreak std::abort
18#endif