Function regorust::regoSetDebugPath

source ยท
pub unsafe extern "C" fn regoSetDebugPath(
    rego: *mut regoInterpreter,
    path: *const c_char,
) -> regoEnum
Expand description

Sets the path to the debug directory.

If set, then (when in debug mode) the interpreter will output intermediary ASTs after each compiler pass to the debug directory. If the directory does not exist, it will be created.

If an error code is returned, more error information can be obtained by calling regoGetError.

@param rego The interpreter. @param path The path to the debug directory. @return REGO_OK if successful, REGO_ERROR otherwise.