CX/src/main.c
Marcel Plch 3da9e7df5a
Minor tweaks
Error handling in cx_init().
More warnings with -Wpedantic.
2024-11-10 17:40:30 +01:00

20 lines
281 B
C

#include <cx.h>
int
main(void) {
// CX context (Window, neural network, threads.)
CX_Context *cx_ctx;
int retval;
if (cx_init(&cx_ctx)) {
return -1;
}
// Do magic
retval = cx_run(cx_ctx);
// Complain about failure
return retval;
}