libkernaux/src/assert.c

18 lines
346 B
C

#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 *msg) = NULL;
void kernaux_assert_do(
const char *const file,
const int line,
const char *const msg
) {
if (kernaux_assert_cb) kernaux_assert_cb(file, line, msg);
}