Make REPORT_ERROR private

amending commit ce71586
This commit is contained in:
fell 2018-02-19 12:29:06 +01:00
parent fb26ef648e
commit ee217c61b2
2 changed files with 10 additions and 10 deletions

View File

@ -53,6 +53,16 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "gnc.app-utils.sx"
/** Report errors bilingual:
* in g_critical untranslated and
* in g_list_append translated.
*/
#define REPORT_ERROR(list, format, ...) do { \
g_critical(format, __VA_ARGS__); \
if (list != NULL) \
*list = g_list_append(*list, g_strdup_printf(_(format), __VA_ARGS__)); \
} while (0)
static GObjectClass *parent_class = NULL;
static void gnc_sx_instance_model_class_init (GncSxInstanceModelClass *klass);

View File

@ -259,14 +259,4 @@ GHashTable* gnc_sx_all_instantiate_cashflow_all(GDate range_start, GDate range_e
G_END_DECLS
/** Report errors bilingual:
* in g_critical untranslated and
* in g_list_append translated.
*/
#define REPORT_ERROR(list, format, ...) do { \
g_critical(format, __VA_ARGS__); \
if (list != NULL) \
*list = g_list_append(*list, g_strdup_printf(_(format), __VA_ARGS__)); \
} while (0)
#endif // _GNC_SX_INSTANCE_MODEL_H