Files
TL/include/tl/plain_crash.h
jeanlemotan 8297b0b45f First
2024-07-02 18:06:33 +02:00

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)