diff options
Diffstat (limited to 'src/common/nullpo.c')
-rw-r--r-- | src/common/nullpo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/nullpo.c b/src/common/nullpo.c index 0333c02ef..e61d52257 100644 --- a/src/common/nullpo.c +++ b/src/common/nullpo.c @@ -12,6 +12,8 @@ #include "../common/showmsg.h" +struct nullpo_interface nullpo_s; + /** * Reports failed assertions or NULL pointers * @@ -32,3 +34,12 @@ void assert_report(const char *file, int line, const char *func, const char *tar ShowError("%s:%d: '%s' in function `%s'\n", file, line, targetname, func); ShowError("--- end %s ----------------------------------------\n", title); } + +/** + * + **/ +void nullpo_defaults(void) { + nullpo = &nullpo_s; + + nullpo->assert_report = assert_report; +} |