src/crashcatcher.h

Tue, 07 Jan 2014 12:06:12 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 07 Jan 2014 12:06:12 +0200
changeset 605
2983f7c7e7c9
parent 600
209e3f1f7b2c
permissions
-rw-r--r--

- use --long in the git describe command for the GIT_DESCRIBE macro definition

567
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
1 /*
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
2 * LDForge: LDraw parts authoring CAD
600
209e3f1f7b2c - updated copyright year. Best wishes for 2014!
Santeri Piippo <crimsondusk64@gmail.com>
parents: 567
diff changeset
3 * Copyright (C) 2013, 2014 Santeri Piippo
567
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
4 *
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
5 * This program is free software: you can redistribute it and/or modify
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
6 * it under the terms of the GNU General Public License as published by
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
7 * the Free Software Foundation, either version 3 of the License, or
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
8 * (at your option) any later version.
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
9 *
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
10 * This program is distributed in the hope that it will be useful,
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
13 * GNU General Public License for more details.
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
14 *
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
15 * You should have received a copy of the GNU General Public License
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
17 */
82101a296f9e - added file headers to crashcatcher.cc and .h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 513
diff changeset
18
513
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
19 #ifndef LDFORGE_CRASHCATCHER_H
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
20 #define LDFORGE_CRASHCATCHER_H
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
21
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
22 #ifdef __unix__
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
23
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
24 void initCrashCatcher();
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
25
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
26 #else // ifdef __unix__
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
27 #define initCrashCatcher()
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
28 #endif // ifdef __unix__
29eb671b34f6 Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
29 #endif // ifndef LDFORGE_CRASHCATCHER_H

mercurial