Skip to content
Snippets Groups Projects
Commit 08f7e29c authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1496503 - Use MOZ_CrashOOL in MOZ_CrashPrintf. r=froydnj

Because we don't really need all this repetition.

Depends on D11718

Depends on D11718

Differential Revision: https://phabricator.services.mozilla.com/D11719

--HG--
extra : moz-landing-system : lando
parent b60c5c12
No related branches found
No related tags found
No related merge requests found
......@@ -47,10 +47,10 @@ MOZ_CrashPrintf(const char* aFilename, int aLine, const char* aFormat, ...)
MOZ_RELEASE_ASSERT(ret >= 0 && size_t(ret) < sPrintfCrashReasonSize,
"Could not write the explanation string to the supplied buffer!");
#ifdef DEBUG
MOZ_ReportCrash(sPrintfCrashReason, aFilename, aLine);
MOZ_CrashOOL(aFilename, aLine, sPrintfCrashReason);
#else
MOZ_CrashOOL(nullptr, aLine, sPrintfCrashReason);
#endif
gMozCrashReason = sPrintfCrashReason;
MOZ_REALLY_CRASH(aLine);
}
MOZ_END_EXTERN_C
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment