Skip to content

__nexus_codegen_emit_c99__

builtin · libnexusinterp/corefcn/jit-enable-proprietary.cc

: ok = __nexus_codegen_emit_c99__ (fcn, outdir, sizes)
: ok = __nexus_codegen_emit_c99__ (fcn, outdir, sizes, classes)
: ok = __nexus_codegen_emit_c99__ (fcn, outdir, sizes, classes, vardims)

Lower a restricted user function to codegen IR and emit C99 sources (fcn.c / fcn.h) under outdir.

sizes is a cell of size row-vectors matching the function inputs (from coder.typeof / -args). classes defaults to 'double' per input. vardims is a cell of logical vectors; any true entry refuses emission (variable-size needs nexus#1708).

Returns logical true on success. On failure raises emlc:compilationError.