expr_batch_clear

Function expr_batch_clear 

Source
#[unsafe(no_mangle)]
pub extern "C" fn expr_batch_clear(batch: *mut ExprBatch) -> i32
Expand description

Clear all expressions, parameters, and results from a batch

This allows the batch to be reused without recreating it. The arena memory used by previous expressions remains allocated but unused until the arena is reset. This is safer than freeing and recreating the batch.

§Parameters

  • batch: The batch to clear

§Returns

0 on success, negative error code on failure

§Safety

The pointer must have been created by expr_batch_new()