src/crashcatcher.h

Tue, 22 Oct 2013 13:47:41 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 22 Oct 2013 13:47:41 +0300
changeset 523
a12e36f2db5f
parent 513
29eb671b34f6
child 567
82101a296f9e
permissions
-rw-r--r--

enclosed the assert replacement in braces. In release mode, the assert is replaced with nothing and there's a little bit of code in addObjectDialog which uses it as a statement in an one-line if(). With the assert disappearing in release builds this triggered a GCC warning, as the if would be left without a body.

#ifndef LDFORGE_CRASHCATCHER_H
#define LDFORGE_CRASHCATCHER_H

#ifdef __unix__

void initCrashCatcher();

#else // ifdef __unix__
#define initCrashCatcher()
#endif // ifdef __unix__
#endif // ifndef LDFORGE_CRASHCATCHER_H

mercurial