JsonneD.nativeCallback

Register a native extension.

This will appear in Jsonnet as a function type and can be accessed from std.nativeExt("foo").

DO NOT register native callbacks with side-effects! Jsonnet is a lazy functional language and will call your function when you least expect it, more times than you expect, or not at all.

\param vm The vm. \param name The name of the function as visible to Jsonnet code, e.g. "foo". \param cb The PURE function that implements the behavior you want. \param ctx User pointer, stash non-global state you need here. \param params NULL-terminated array of the names of the params. Must be valid identifiers.

struct JsonneD
void
nativeCallback
(
string name
,,
void* ctx
,
const(char)** params
)

Meta