mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
83d416fa09
{{{ svn merge -r3061:3225 https://svn.tokutek.com/tokudb/tokudb.558 }}} Fixes #630. Addresses #558. git-svn-id: file:///svn/tokudb@3226 c7de825b-a66e-492c-adef-691d508d4ae1
10 lines
297 B
C
10 lines
297 B
C
#include "toku_assert.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void toku_do_assert(int 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();
|
|
}
|
|
}
|