Function Byond_ReadListIndex

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

Reads an item from a list. Blocks if not on the main thread.

§Arguments

  • loc - The list
  • idx - The index in the list (may be a number, or a non-number if using associative lists)
  • result - Pointer to accept result

§Returns

True on success