_debuggerAssert() was missing for debug build.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14899 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-11-13 17:17:00 +00:00
parent 0b10086c24
commit 87c9daae2b

View File

@ -8,6 +8,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include <Debug.h>
#include <image.h>
#include <OS.h>
@ -21,6 +22,16 @@ debugger(const char *message)
exit(1);
}
// _debuggerAssert
int
_debuggerAssert(const char *file, int line, char *expression)
{
char buffer[2048];
snprintf(buffer, sizeof(buffer), "%s:%d: %s\n", file, line, expression);
debugger(buffer);
return 0;
}
// system_time
bigtime_t
system_time(void)