Function

NumCosmoMathutil_set_or_call_error

Declaration [src]

void
ncm_util_set_or_call_error (
  GError** error,
  GQuark domain,
  gint code,
  const gchar* format,
  ...
)

Description [src]

If error is not NULL, it sets the error message, otherwise it calls g_error. The error message is formatted using format and the arguments.

If error is not NULL and it already contains an error, it is considered a programming error and g_error is called.

This function is not directly available to language bindings.

Parameters

error

Type: GError

A GError or NULL.

The data is owned by the caller of the function.
domain

Type: GQuark

An error domain GQuark.

code

Type: gint

An error code.

format

Type: const gchar*

A printf format string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
...

Type: 

Arguments for format.