Function regorust::regoAddModule
source ยท pub unsafe extern "C" fn regoAddModule(
rego: *mut regoInterpreter,
name: *const c_char,
contents: *const c_char,
) -> regoEnum
Expand description
Adds a module (e.g. virtual document) from the specified string.
If an error code is returned, more error information can be obtained by calling regoGetError.
@param rego The interpreter. @param name The name of the module. @param contents The contents of the module. @return REGO_OK if successful, REGO_ERROR otherwise.