# HG changeset patch # User Santeri Piippo # Date 1400688057 -10800 # Node ID 23130cafe95edd6d4dbf38087a94e96ded7d8545 # Parent 0ed96169b8c093f74a51737199c3465b441dda0a - further edits to crashcatcher diff -r 0ed96169b8c0 -r 23130cafe95e src/crashCatcher.cc --- a/src/crashCatcher.cc Wed May 21 18:39:03 2014 +0300 +++ b/src/crashCatcher.cc Wed May 21 19:00:57 2014 +0300 @@ -23,8 +23,6 @@ #include #include #include "crashCatcher.h" -#include "basics.h" -#include "dialogs.h" #ifdef Q_OS_LINUX # include @@ -152,17 +150,15 @@ // void assertionFailure (const char* file, int line, const char* funcname, const char* expr) { - String errmsg = format ( +#ifdef __unix__ + g_assertionFailure = format ("%1:%2: %3: %4", file, line, funcname, expr); +#else + bombBox (format ( "

File: %1
" "Line: %2
" "Function: %3

" "

Assertion `%4' failed.

", - file, line, funcname, expr); - - g_assertionFailure = errmsg; - -#ifndef __unix__ - bombBox (errmsg); + file, line, funcname, expr)); #endif abort(); diff -r 0ed96169b8c0 -r 23130cafe95e src/crashCatcher.h --- a/src/crashCatcher.h Wed May 21 18:39:03 2014 +0300 +++ b/src/crashCatcher.h Wed May 21 19:00:57 2014 +0300 @@ -17,6 +17,8 @@ */ #pragma once +#include "main.h" + #ifdef __unix__ void initCrashCatcher(); #else // ifdef __unix__