Function Macro

GLibDEFINE_AUTO_CLEANUP_CLEAR_FUNC

Declaration [src]

#define G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (
  TypeName,
  func
)

Description [src]

Defines the appropriate cleanup function for a type.

This will typically be the _clear() function for the given type.

With this definition, it will be possible to use g_auto() with TypeName.

G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GQueue, g_queue_clear)

This macro should be used unconditionally; it is a no-op on compilers where cleanup is not supported.

Available since:2.44

Parameters

TypeName -
 

A type name to define a g_auto() cleanup function for.

func -
 

The clear function.