/* Returns: (transfer none): the value contents as pointer  */
gpointer g_value_peek_pointer(const GValue *value)
/* Returns: (transfer none): the value contents as pointer  */
gpointer g_value_peek_pointer(const GValue *value)
{
  GTypeValueTable *value_table;
  g_return_val_if_fail (G_IS_VALUE (value), NULL);
  value_table = g_type_value_table_peek (G_VALUE_TYPE (value));
  if (!value_table->value_peek_pointer)
    {
      g_return_val_if_fail (g_value_fits_pointer (value) == TRUE, NULL);
      return NULL;
    }
  return value_table->value_peek_pointer (value);
}