Don't use exit() when compiling for the kernel.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-04-08 16:48:32 +00:00
parent b36c8ba26a
commit 7be389053f
1 changed files with 7 additions and 2 deletions

View File

@ -130,8 +130,13 @@ typedef int32_t Long;
typedef u_int32_t ULong;
#ifdef DEBUG
# include <stdio.h>
# define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
# if _KERNEL_MODE
# include <KernelExport.h>
# define Bug(x) {dprintf("%s\n", x);}
# else
# include <stdio.h>
# define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
# endif
#endif
#include <locale.h>