1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | /* tt_crash.h - GNU/tolTcl Library |
|---|
| 2 | |
|---|
| 3 | Copyright (C) 2003 - Bayes Decisión, SL |
|---|
| 4 | |
|---|
| 5 | This program is free software; you can redistribute it and/or modify |
|---|
| 6 | it under the terms of the GNU General Public License as published by |
|---|
| 7 | the Free Software Foundation; either version 2, or (at your option) |
|---|
| 8 | any later version. |
|---|
| 9 | |
|---|
| 10 | This program is distributed in the hope that it will be useful, |
|---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | GNU General Public License for more details. |
|---|
| 14 | |
|---|
| 15 | You should have received a copy of the GNU General Public License |
|---|
| 16 | along with this program; if not, write to the Free Software |
|---|
| 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|---|
| 18 | USA. |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | #ifndef TT_CRASH_H |
|---|
| 22 | #define TT_CRASH_H 1 |
|---|
| 23 | |
|---|
| 24 | #include <tt_common.h> |
|---|
| 25 | #include <setjmp.h> |
|---|
| 26 | |
|---|
| 27 | BEGIN_C_DECLS |
|---|
| 28 | |
|---|
| 29 | extern jmp_buf jmp_mark; |
|---|
| 30 | |
|---|
| 31 | #define try_crash if ( !setjmp(jmp_mark) ) |
|---|
| 32 | |
|---|
| 33 | #define catch_crash else |
|---|
| 34 | |
|---|
| 35 | int InitCrashHandler(); |
|---|
| 36 | |
|---|
| 37 | END_C_DECLS |
|---|
| 38 | |
|---|
| 39 | #endif /* TT_CRASH_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.