Function Macro

VipsNEW

Declaration [src]

#define VIPS_NEW (
  OBJ,
  T
)

Description [src]

Allocate memory for a thing of type T. The memory is not cleared.

This macro cannot fail. See vips_tracked_malloc() if you are allocating large amounts of memory.

::: seealso vips_malloc().

Parameters

OBJ none
 

Allocate memory local to OBJ, or NULL for no auto-free.

T none
 

Type of thing to allocate.