1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/src/assert.c
2022-01-24 22:17:23 +05:00

17 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);
}