MCPcopy Create free account
hub / github.com/crownengine/crown / breakpoint

Function breakpoint

src/core/debug/debug.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace debug
19{
20 void breakpoint()
21 {
22#if CROWN_COMPILER_MSVC
23 __debugbreak();
24#elif CROWN_PLATFORM_EMSCRIPTEN
25 emscripten_debugger();
26#elif CROWN_PLATFORM_LINUX
27 raise(SIGTRAP);
28#elif CROWN_COMPILER_GCC || CROWN_COMPILER_CLANG
29 __builtin_trap();
30#else
31# error "Unavailable"
32#endif
33 }
34
35 void crash(CrashType::Enum type)
36 {

Callers 1

abortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected