mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Additional debug information during crash
This commit is contained in:
parent
37d6ccbc7d
commit
665f88650a
1 changed files with 7 additions and 1 deletions
|
@ -2329,7 +2329,13 @@ BeMCOperand BeMCContext::GetOperand(BeValue* value, bool allowMetaResult, bool a
|
||||||
//auto itr = mValueToOperand.find(value);
|
//auto itr = mValueToOperand.find(value);
|
||||||
if (!allowFail)
|
if (!allowFail)
|
||||||
{
|
{
|
||||||
BF_ASSERT(operandPtr != NULL);
|
if (operandPtr == NULL)
|
||||||
|
{
|
||||||
|
BeDumpContext dumpCtx;
|
||||||
|
String str;
|
||||||
|
dumpCtx.ToString(str, value);
|
||||||
|
Fail(StrFormat("Unable to find bevalue for operand: %s", str.c_str()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (operandPtr == NULL)
|
if (operandPtr == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue