diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-05 18:47:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-05 18:47:50 +0000 |
commit | e1196c2c76e6a4a142a91bb9e0a0fae1a06f68fc (patch) | |
tree | a220e450deca24c69178cd0b0b8aeb0c21dd8792 /src/util/common_logging.c | |
parent | bf886ddf525b991c6a11c9bd0be10e9aa0dd1c80 (diff) | |
download | gnunet-e1196c2c76e6a4a142a91bb9e0a0fae1a06f68fc.tar.gz gnunet-e1196c2c76e6a4a142a91bb9e0a0fae1a06f68fc.zip |
introducing GNUNET_abort
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r-- | src/util/common_logging.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 101f2fd9f..e96fb8e78 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c | |||
@@ -260,6 +260,20 @@ resize_logdefs () | |||
260 | logdefs = GNUNET_realloc (logdefs, logdefs_size * sizeof (struct LogDef)); | 260 | logdefs = GNUNET_realloc (logdefs, logdefs_size * sizeof (struct LogDef)); |
261 | } | 261 | } |
262 | 262 | ||
263 | |||
264 | /** | ||
265 | * Abort the process, generate a core dump if possible. | ||
266 | */ | ||
267 | void | ||
268 | GNUNET_abort () | ||
269 | { | ||
270 | #if WINDOWS | ||
271 | DebugBreak(); | ||
272 | #endif | ||
273 | abort(); | ||
274 | } | ||
275 | |||
276 | |||
263 | /** | 277 | /** |
264 | * Utility function - adds a parsed definition to logdefs array. | 278 | * Utility function - adds a parsed definition to logdefs array. |
265 | * | 279 | * |