summaryrefslogtreecommitdiff
path: root/src/common/nullpo.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-04-05 19:36:23 +0200
committerGitHub <noreply@github.com>2020-04-05 19:36:23 +0200
commit0c7baa39ae58eaf7f823f04a57247e1cc7ab604f (patch)
tree8def48313a6f33bbc4c5e44431bd4c5a0462de01 /src/common/nullpo.h
parentdd7f653b00239299cdecb7ca826c21e5957863da (diff)
parentc0e51f774c8c3c0ee763e166fd4534624966edcf (diff)
downloadhercules-0c7baa39ae58eaf7f823f04a57247e1cc7ab604f.tar.gz
hercules-0c7baa39ae58eaf7f823f04a57247e1cc7ab604f.tar.bz2
hercules-0c7baa39ae58eaf7f823f04a57247e1cc7ab604f.tar.xz
hercules-0c7baa39ae58eaf7f823f04a57247e1cc7ab604f.zip
Merge pull request #2581 from 4144/backtrace
Add proper backtrace logging even if functions is hidden.
Diffstat (limited to 'src/common/nullpo.h')
-rw-r--r--src/common/nullpo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/nullpo.h b/src/common/nullpo.h
index fc5386243..3eb002834 100644
--- a/src/common/nullpo.h
+++ b/src/common/nullpo.h
@@ -28,6 +28,8 @@
// if need disable asserts checks this line can be commented
#define ASSERT_CHECK
+struct backtrace_state;
+
/** Assert */
#if defined(ASSERT_CHECK)
@@ -148,7 +150,12 @@
struct nullpo_interface {
+ void (*init) (void);
+ void (*final) (void);
+
void (*assert_report) (const char *file, int line, const char *func, const char *targetname, const char *title);
+
+ struct backtrace_state *backtrace_state;
};
#ifdef HERCULES_CORE