[−][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:
- Call nk_make_room(Nuke*).
- Call check_relocation to retrieve the relocated pointers.
- Update pointers.
- Call confirm_relocation to reset the relocation array.