### Function Macro

# GObject DEFINE_POINTER_TYPE_WITH_CODE

since: 2.26

#### Declaration

    #define G_DEFINE_POINTER_TYPE_WITH_CODE (
      TypeName,
      type_name,
      _C_
    )

#### Description

A convenience macro for pointer type implementations. Similar to G_DEFINE_POINTER_TYPE(), but allows to insert custom code into the `type_name_get_type()` function.

Available since: 2.26

This function is not directly available to language bindings.

#### Parameters

`TypeName`

  Type: `-`

  The name of the new type, in Camel case.

`type_name`

  Type: `-`

  The name of the new type, in lowercase, with words separated by `_`

`_C_`

  Type: `-`

  Custom code that gets inserted in the `*_get_type()` function.