First
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "tl/detail/prologue.h"
|
||||
#include "tl/detail/internal_crash.h"
|
||||
#include "tl/format.h"
|
||||
#include "tl/string.h"
|
||||
|
||||
#define TL_CRASH(__fmt__, ...) \
|
||||
do \
|
||||
{ \
|
||||
const eastl::string __msg__ = tl::format<eastl::string>(__fmt__, ##__VA_ARGS__); \
|
||||
tl::crash::response res = tl::crash::detail::invoke_crash_handler(__FILE__, __LINE__, __msg__.c_str()); \
|
||||
if (res == tl::crash::response::CRASH) \
|
||||
*reinterpret_cast<volatile unsigned int*>(0) = 0xDEAD; \
|
||||
} while(false)
|
||||
Reference in New Issue
Block a user