diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-15 18:39:03 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-15 18:39:03 +0000 |
commit | bf3971336f9b7b9ac95edf97649adb7f79b8a04c (patch) | |
tree | d9abf4d8f341b6503d3b019cda248859166832ad /navit/debug.c | |
parent | 244d149bd53729635eb09caa1693c2a2f0fb7b62 (diff) | |
download | navit-bf3971336f9b7b9ac95edf97649adb7f79b8a04c.tar.gz |
Fix:Core:Replaced g_assert with dbg_assert
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1477 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.c')
-rw-r--r-- | navit/debug.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/navit/debug.c b/navit/debug.c index 7c552d6f9..cfe14202d 100644 --- a/navit/debug.c +++ b/navit/debug.c @@ -106,4 +106,9 @@ debug_printf(int level, const char *module, const int mlen,const char *function, va_end(ap); } - +void +debug_assert_fail(char *module, const int mlen,const char *function, const int flen, char *file, int line, char *expr) +{ + debug_printf(0,module,mlen,function,flen,1,"%s:%d assertion failed:%s\n", file, line, expr); + abort(); +} |