20 lines
281 B
C
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;
|
|
}
|
|
|