Implement WTFReportAssertionFailure
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 17 Oct 2013 08:45:58 +0000 (10:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 17 Oct 2013 09:36:32 +0000 (11:36 +0200)
At least do a printf with the failure details, to make debugging easier.

Change-Id: I092d31e3408cd0a651c6dd96b5fd94adf4abe3a7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/3rdparty/masm/stubs/WTFStubs.cpp

index e299a54..dff692f 100644 (file)
@@ -109,8 +109,9 @@ void dataLogFString(const char* str)
 
 extern "C" {
 
-void WTFReportAssertionFailure(const char* /*file*/, int /*line*/, const char* /*function*/, const char* /*assertion*/)
+void WTFReportAssertionFailure(const char* file, int line, const char* function, const char*assertion)
 {
+    fprintf(stderr, "WTF failing assertion in %s, line %d, function %s: %s\n", file, line, function, assertion);
 }
 
 void WTFReportBacktrace()