MCPcopy Create free account
hub / github.com/defold/defold / CrashHandlerCallback

Function CrashHandlerCallback

engine/engine/src/engine.cpp:751–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749 }
750
751 static void CrashHandlerCallback(void* ctx, char* buffer, uint32_t buffersize)
752 {
753 HEngine engine = (HEngine)ctx;
754 if (engine->m_SharedScriptContext) {
755 LuaCallstackCtx ctx;
756 ctx.m_First = true;
757 ctx.m_Buffer = buffer;
758 ctx.m_BufferSize = buffersize;
759 dmScript::GetLuaTraceback(dmScript::GetLuaState(engine->m_SharedScriptContext), "Sln", GetLuaStackTraceCbk, &ctx);
760 }
761 }
762
763 static WindowsGraphicsApi AdapterFamilyToGraphicsAPI(dmGraphics::AdapterFamily family)
764 {

Callers

nothing calls this directly

Calls 2

GetLuaTracebackFunction · 0.85
GetLuaStateFunction · 0.50

Tested by

no test coverage detected