7. monolith/compute (quick hack)
Calls "monolith_compute". Might be needed in order to use
jex
.
<<static_functions>>=
static Janet jcompute(int32_t argc, Janet *argv)
{
int nsmps;
janet_fixarity(argc, 1);
nsmps = janet_unwrap_integer(argv[0]);
monolith_compute(monolith_data_get(), nsmps, NULL);
return janet_wrap_nil();
}
<<janet_loader>>=
janet_def(env, "monolith/compute", janet_wrap_cfunction(jcompute), NULL);
prev | home | next