Skip to content
Snippets Groups Projects
Commit 70214fcd authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

debug: add wp_critical* macros

parent 738b88aa
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,8 @@ void wp_log_structured_standard (const gchar *log_domain,
G_STRINGIFY (__LINE__), G_STRFUNC, type, object, __VA_ARGS__); \
})
#define wp_critical(...) \
wp_log (G_LOG_LEVEL_CRITICAL, 0, NULL, __VA_ARGS__)
#define wp_warning(...) \
wp_log (G_LOG_LEVEL_WARNING, 0, NULL, __VA_ARGS__)
#define wp_message(...) \
......@@ -50,6 +52,8 @@ void wp_log_structured_standard (const gchar *log_domain,
#define wp_trace(...) \
wp_log (WP_LOG_LEVEL_TRACE, 0, NULL, __VA_ARGS__)
#define wp_critical_object(object, ...) \
wp_log (G_LOG_LEVEL_CRITICAL, G_TYPE_FROM_INSTANCE (object), object, __VA_ARGS__)
#define wp_warning_object(object, ...) \
wp_log (G_LOG_LEVEL_WARNING, G_TYPE_FROM_INSTANCE (object), object, __VA_ARGS__)
#define wp_message_object(object, ...) \
......@@ -61,6 +65,8 @@ void wp_log_structured_standard (const gchar *log_domain,
#define wp_trace_object(object, ...) \
wp_log (WP_LOG_LEVEL_TRACE, G_TYPE_FROM_INSTANCE (object), object, __VA_ARGS__)
#define wp_critical_boxed(type, object, ...) \
wp_log (G_LOG_LEVEL_CRITICAL, type, object, __VA_ARGS__)
#define wp_warning_boxed(type, object, ...) \
wp_log (G_LOG_LEVEL_WARNING, type, object, __VA_ARGS__)
#define wp_message_boxed(type, object, ...) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment