summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-01-27 11:33:01 -0200
committershennetsind <ind@henn.et>2013-01-27 11:33:01 -0200
commit7911e5e5cde7ad1ffcd9e367110a656b9432ad50 (patch)
tree7e935c5975e51bfc32c85d4209ed9c5b6bc7d111
parentcf690d4206ea3c0e99d7f7a31951c5fce623a43f (diff)
downloadhercules-7911e5e5cde7ad1ffcd9e367110a656b9432ad50.tar.gz
hercules-7911e5e5cde7ad1ffcd9e367110a656b9432ad50.tar.bz2
hercules-7911e5e5cde7ad1ffcd9e367110a656b9432ad50.tar.xz
hercules-7911e5e5cde7ad1ffcd9e367110a656b9432ad50.zip
Debugging Improvement
Making signal.h available throughout the whole source when in DEBUG mode so that developers (and users debugging) can easily raise signals from anywhere. Extremely handy with gdb, for example. Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/common/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/core.h b/src/common/core.h
index d48962c94..f619d821f 100644
--- a/src/common/core.h
+++ b/src/common/core.h
@@ -4,6 +4,11 @@
#ifndef _CORE_H_
#define _CORE_H_
+/* so that developers with --enable-debug can raise signals from any section of the code they'd like */
+#ifdef DEBUG
+ #include <signal.h>
+#endif
+
extern int arg_c;
extern char **arg_v;