13 lines
446 B
C
13 lines
446 B
C
#pragma once
|
|
|
|
#include "tl/detail/prologue.h"
|
|
#include "tl/detail/internal_crash.h"
|
|
|
|
#define TL_PLAIN_CRASH(msg) \
|
|
do \
|
|
{ \
|
|
tl::crash::response response = tl::crash::detail::invoke_crash_handler(__FILE__, __LINE__, msg); \
|
|
if (response == tl::crash::response::CRASH) \
|
|
*reinterpret_cast<volatile unsigned int*>(0) = 0xDEAD; \
|
|
} while(false)
|