Function regorust::regoAddModule
source ยท pub unsafe extern "C" fn regoAddModule(
rego: *mut regoInterpreter,
name: *const c_char,
contents: *const c_char,
) -> regoEnumExpand description
@brief Adds a module (e.g. virtual document) from the specified string. @details If an error code is returned, more error information can be obtained by calling ::regoError. @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.