backtrace: don't use assertions to test runtime failures
This commit is contained in:
parent
3adbfae057
commit
55c5bf96c5
@ -23,8 +23,8 @@ using debug::backtrace;
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
backtrace::backtrace ()
|
backtrace::backtrace ()
|
||||||
{
|
{
|
||||||
static auto ready = SymInitialize (GetCurrentProcess (), nullptr, TRUE);
|
if (!SymInitialize (GetCurrentProcess (), nullptr, TRUE))
|
||||||
CHECK (ready);
|
cruft::win32::error::throw_code ();
|
||||||
|
|
||||||
CONTEXT ctx;
|
CONTEXT ctx;
|
||||||
memset (&ctx, 0, sizeof (ctx));
|
memset (&ctx, 0, sizeof (ctx));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user