diff options
Diffstat (limited to 'include/errors.h')
-rw-r--r-- | include/errors.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/errors.h b/include/errors.h index 00fe6dc..975fac4 100644 --- a/include/errors.h +++ b/include/errors.h @@ -17,6 +17,11 @@ void vwarnx(const char *, va_list); extern const char *__mlib_errors_progname; -#define progname() (__mlib_errors_progname) +[[gnu::always_inline]] +static inline const char * +progname(void) +{ + return __mlib_errors_progname; +} #endif /* !MLIB_ERRORS_H */ |