89 add deprecated cm_print_error

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Alexander Courtis 2023-04-29 13:05:27 +10:00 committed by Andreas Schneider
parent 309ee5e402
commit 1b019882ba
1 changed files with 10 additions and 0 deletions

View File

@ -2998,6 +2998,16 @@ enum cm_message_output {
CM_OUTPUT_XML = 8,
};
#ifdef DOXYGEN
/**
* @deprecated Use cmocka_print_error()
*/
void cm_print_error(const char* const format, ...);
#else
#define cm_print_error(format, ...) \
cmocka_print_error(format, ##__VA_ARGS__)
#endif
/**
* @brief Print error message using the cmocka output format.
*