mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
Add SIGFPE debug DEFINES.
To allow debug SIGFPE easily. Only need to uncomment DEFINES *= SIGFPE_DEBUG line in retroshare- gui.pro.
This commit is contained in:
parent
d1be3f3a4f
commit
d649659172
2 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,10 @@
|
|||
#include "util/RsGxsUpdateBroadcast.h"
|
||||
#include "gui/settings/WebuiPage.h"
|
||||
|
||||
#ifdef SIGFPE_DEBUG
|
||||
#include <fenv.h>
|
||||
#endif
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)
|
||||
#ifdef WINDOWS_SYS
|
||||
#include <QFileDialog>
|
||||
|
@ -155,6 +159,9 @@ int main(int argc, char *argv[])
|
|||
QApplication app(argc, argv);
|
||||
QDir::setCurrent(QCoreApplication::applicationDirPath());
|
||||
}
|
||||
#endif
|
||||
#ifdef SIGFPE_DEBUG
|
||||
feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
||||
#endif
|
||||
|
||||
QStringList args = char_array_to_stringlist(argv+1, argc-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue