libkernaux/src/assert.c

18 lines
346 B
C
Raw Normal View History

2021-12-14 20:37:11 +00:00
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <stddef.h>
void (*kernaux_assert_cb)(const char *file, int line, const char *str) = NULL;
2021-12-18 00:34:15 +00:00
void kernaux_assert_do(
const char *const file,
const int line,
const char *const str
) {
if (kernaux_assert_cb) kernaux_assert_cb(file, line, str);
}