Function

NumCosmoMathutil_forward_or_call_error

Declaration [src]

void
ncm_util_forward_or_call_error (
  GError** error,
  GError* local_error,
  const gchar* format,
  ...
)

Description [src]

Forwards the error from local_error, adding a prefix message formatted with format and its arguments, if local_error is not NULL. If local_error is NULL, the function does nothing. If error is not NULL, the function forwards local_error to error. If error is NULL, the function calls g_error with local_error.

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.
local_error

Type: GError

A GError or NULL.

The data is owned by the caller of the function.
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.