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:
GErrorA
GErroror NULL.The data is owned by the caller of the function. domain-
Type:
GQuarkAn error domain GQuark.
code-
Type:
gintAn 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.