_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:
parent
0b10086c24
commit
87c9daae2b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user