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

debug: optimize wp_log_level_is_enabled()

Add the 'const' attribute to let the compiler know that it doesn't
need to call it multiple times for the same debug level argument,
since the enabled log levels cannot change at runtime.
parent 1faa752c
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ G_BEGIN_DECLS
#define WP_OBJECT_ARGS(object) G_OBJECT_TYPE_NAME(object), object
WP_API
gboolean wp_log_level_is_enabled (GLogLevelFlags log_level);
gboolean wp_log_level_is_enabled (GLogLevelFlags log_level) G_GNUC_CONST;
WP_API
GLogWriterOutput wp_log_writer_default (GLogLevelFlags log_level,
......
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