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:
parent
b36c8ba26a
commit
7be389053f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue