Function Byond_CallProc

Source
pub unsafe extern "C-unwind" fn Byond_CallProc(
    src: *const CByondValue,
    name: *const c_char,
    arg: *const CByondValue,
    arg_count: usize,
    result: *mut CByondValue,
) -> bool
Expand description

Calls an object proc by name. The proc call is treated as waitfor=0 and will return immediately on sleep. Blocks if not on the main thread.

§Arguments

  • src - The object that owns the proc
  • name - Proc name as null-terminated string
  • arg - Array of arguments
  • arg_count - Number of arguments
  • result - Pointer to accept result

§Returns

True on success