object_new

Function object_new 

Source
pub unsafe extern "C" fn object_new(
    typename: *const c_char,
) -> *mut Object
Expand description

object_new: @typename: The name of the type of the object to instantiate.

This function will initialize a new object using heap allocated memory. The returned object has a reference count of 1, and will be freed when the last reference is dropped.

Returns: The newly allocated and instantiated object.