expr_batch_add_variable

Function expr_batch_add_variable 

Source
#[unsafe(no_mangle)]
pub extern "C" fn expr_batch_add_variable( batch: *mut ExprBatch, name: *const c_char, value: Real, ) -> ExprResult
Expand description

Add a variable to the batch

§Parameters

  • batch: The batch
  • name: Variable name (must be valid UTF-8)
  • value: Initial value

§Returns

ExprResult with index on success, or error details on failure