Function emojicode_sys::Emojicode_Thread_retain [] [src]

pub unsafe extern "C" fn Emojicode_Thread_retain(
    this: *mut Emojicode_Thread,
    object: *mut Emojicode_Object
) -> Emojicode_RetainedObjectPointer

Retains the given object. /// This method is used in native function code to "retain" an object, i.e. to prevent the object from being /// deallocated by the garbage collector and to keep a pointer to it. /// @warning You must retain all objects which you wish to keep, before you perform a potentially garbage-collector /// invoking operation. As well, you must "release" the object before your function returns by calling @c release(). /// @returns A @c RetainedObjectPointer pointing to the retained object.