CX/src/main.c

21 lines
281 B
C
Raw Normal View History

#include <cx.h>
int
main(void) {
// CX context (Window, neural network, threads.)
2024-11-07 21:07:33 +00:00
CX_Context *cx_ctx;
2024-07-06 16:04:24 +00:00
int retval;
if (cx_init(&cx_ctx)) {
2024-07-06 16:04:24 +00:00
return -1;
}
// Do magic
2024-11-07 21:07:33 +00:00
retval = cx_run(cx_ctx);
// Complain about failure
2023-12-13 09:56:21 +00:00
return retval;
}