forked from enlightenment/efl
export vargs version of eina_error_print().
SVN revision: 39879
This commit is contained in:
parent
d5cfffc3c2
commit
78f4f011d0
|
@ -117,6 +117,9 @@ EAPI void eina_error_set(Eina_Error err);
|
||||||
EAPI const char * eina_error_msg_get(Eina_Error error) EINA_PURE;
|
EAPI const char * eina_error_msg_get(Eina_Error error) EINA_PURE;
|
||||||
EAPI void eina_error_print(Eina_Error_Level level, const char *file,
|
EAPI void eina_error_print(Eina_Error_Level level, const char *file,
|
||||||
const char *function, int line, const char *fmt, ...) EINA_ARG_NONNULL(2, 3, 5) EINA_PRINTF(5, 6);
|
const char *function, int line, const char *fmt, ...) EINA_ARG_NONNULL(2, 3, 5) EINA_PRINTF(5, 6);
|
||||||
|
EAPI void eina_error_vprint(Eina_Error_Level level, const char *file,
|
||||||
|
const char *fnc, int line, const char *fmt, va_list args) EINA_ARG_NONNULL(2, 3, 5);
|
||||||
|
|
||||||
EAPI void eina_error_print_cb_stdout(Eina_Error_Level level, const char *file,
|
EAPI void eina_error_print_cb_stdout(Eina_Error_Level level, const char *file,
|
||||||
const char *fnc, int line, const char *fmt, void *data,
|
const char *fnc, int line, const char *fmt, void *data,
|
||||||
va_list args);
|
va_list args);
|
||||||
|
|
|
@ -700,6 +700,21 @@ EAPI void eina_error_print(Eina_Error_Level level, const char *file,
|
||||||
if (getenv("EINA_ERROR_ABORT")) abort();
|
if (getenv("EINA_ERROR_ABORT")) abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void eina_error_vprint(Eina_Error_Level level, const char *file,
|
||||||
|
const char *fnc, int line, const char *fmt, va_list args)
|
||||||
|
{
|
||||||
|
if (level > _error_level)
|
||||||
|
return;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(file);
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(fnc);
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(fmt);
|
||||||
|
|
||||||
|
_print_cb(level, file, fnc, line, fmt, _print_cb_data, args);
|
||||||
|
|
||||||
|
if (getenv("EINA_ERROR_ABORT")) abort();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Print callback that sends the error message to stdout.
|
* @brief Print callback that sends the error message to stdout.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue