Function Byond_ReadVar

Source
pub unsafe extern "C-unwind" fn Byond_ReadVar(
    loc: *const CByondValue,
    varname: *const c_char,
    result: *mut CByondValue,
) -> bool
Expand description

Reads an object variable by name. Blocks if not on the main thread.

§Arguments

  • loc - Object that owns the var
  • varname - Var name as null-terminated string
  • result - Pointer to accept result

§Returns

True on success