Function Macro

GLibDEFINE_AUTO_CLEANUP_CLEAR_FUNC

since: 2.44

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

This function is not directly available to language bindings.

Parameters

TypeName

Type: -

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

func

Type: -

The clear function.