[][src]Function gojsonnet_sys::jsonnet_evaluate_snippet_multi

pub unsafe extern "C" fn jsonnet_evaluate_snippet_multi(
    vm: *mut JsonnetVm,
    filename: *const c_char,
    snippet: *const c_char,
    error: *mut c_int
) -> *mut c_char

Evaluate a string containing Jsonnet code, return a number of named JSON files.

The returned character buffer contains an even number of strings, the filename and JSON for each JSON file interleaved. It should be cleaned up with jsonnet_realloc.

\param filename Path to a file containing Jsonnet code. \param snippet Jsonnet code to execute. \param error Return by reference whether or not there was an error. \returns Either the error, or a sequence of strings separated by \0, terminated with \0\0.