summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/log.h b/src/log.h
index 0e898f1..cc3bf89 100644
--- a/src/log.h
+++ b/src/log.h
@@ -37,7 +37,7 @@ extern sk_font_map _SK_LOG_MONOCHROME;
* @param level: the log level
* @return the string representation of level.
*/
-const char *sk_log_level_to_string(sk_log_level level);
+const char *sk_log_level_to_string(sk_log_level level) SK_RETURNS_NONNULL;
/**
* sk_log_level_of_string:
@@ -50,7 +50,7 @@ const char *sk_log_level_to_string(sk_log_level level);
* @param s: the string representation of the log level
* @return sk_log_level
*/
-sk_log_level sk_log_level_of_string(const char *s);
+sk_log_level sk_log_level_of_string(const char *s) SK_NONNULL(1);
/* getters/setters for global state variables */
@@ -77,7 +77,7 @@ void sk_log_level_set(sk_log_level new);
*
* @return the current logging font map
*/
-sk_font_map *sk_log_font_get();
+sk_font_map *sk_log_font_get() SK_RETURNS_NONNULL;
/**
* sk_log_font_set:
@@ -85,7 +85,7 @@ sk_font_map *sk_log_font_get();
*
* @param font: the new logging font map.
*/
-void sk_log_font_set(sk_font_map *restrict font);
+void sk_log_font_set(sk_font_map *restrict font) SK_NONNULL(1);
/* logging functions */