mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
4abb5ba31d
git-svn-id: file:///svn/tokudb@2167 c7de825b-a66e-492c-adef-691d508d4ae1
10 lines
298 B
C
10 lines
298 B
C
#include "toku_assert.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void toku_do_assert(long expr,const char* expr_as_string,const char *function,const char*file,int line) {
|
|
if (expr==0) {
|
|
fprintf(stderr, "%s:%d %s: Assertion `%s' failed\n", file,line,function,expr_as_string);
|
|
abort();
|
|
}
|
|
}
|