mirror of
https://github.com/tailix/libclayer.git
synced 2024-11-13 11:04:17 -05:00
26 lines
404 B
C
26 lines
404 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <kernaux/runtime.h>
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void example_main();
|
|
|
|
static void assert_cb(
|
|
const char *const file,
|
|
const int line,
|
|
const char *const msg
|
|
) {
|
|
fprintf(stderr, "%s:%d:%s\n", file, line, msg);
|
|
abort();
|
|
}
|
|
|
|
int main()
|
|
{
|
|
kernaux_assert_cb = assert_cb;
|
|
example_main();
|
|
exit(EXIT_SUCCESS);
|
|
}
|