[][src]Function spaik::nk::nk_alloc

pub unsafe extern "C" fn nk_alloc(
    nk: *mut Nuke,
    sz: NkSz,
    ty: u8
) -> *mut c_void

Allocate a new block.

@return The newly allocated block, or NULL iff there is no space left.

If NULL is returned, do the following:

  1. Call nk_make_room(Nuke*).
  2. Call check_relocation to retrieve the relocated pointers.
  3. Update pointers.
  4. Call confirm_relocation to reset the relocation array.