Function Byond_CallGlobalProc

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

Calls a global 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

  • 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