Function Macro
GLibGNUC_ALLOC_SIZE
since: 2.18
Declaration [src]
#define G_GNUC_ALLOC_SIZE (
x
)
Description [src]
Expands to the GNU C alloc_size
function attribute if the compiler
is a new enough gcc. This attribute tells the compiler that the
function returns a pointer to memory of a size that is specified
by the xth
function parameter.
Place the attribute after the function declaration, just before the semicolon.
gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
See the GNU C documentation for more details.
Available since: 2.18
This function is not directly available to language bindings.