diff options
| author | Dennis Camera <skonfig@dtnr.ch> | 2022-08-25 22:15:36 +0200 |
|---|---|---|
| committer | Dennis Camera <skonfig@dtnr.ch> | 2022-08-25 22:15:36 +0200 |
| commit | a62828595b9865a13cdc9b4adba3e3aaa9bc8e73 (patch) | |
| tree | 837e8fd58dea93d0a84414e9807ecd5b4b33ac91 /src/log.h | |
| parent | d73af9d8e436f36b612869422291caeb3239c758 (diff) | |
| download | skonfig-c-a62828595b9865a13cdc9b4adba3e3aaa9bc8e73.tar.gz skonfig-c-a62828595b9865a13cdc9b4adba3e3aaa9bc8e73.zip | |
Enable more __attribute__s
Diffstat (limited to 'src/log.h')
| -rw-r--r-- | src/log.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 */ |
