diff options
author | James Almer <jamrial@gmail.com> | 2019-01-26 06:41:35 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-01-28 18:16:54 +0300 |
commit | c98bbeb3cf7ec6bd2545fdb8704dae87fe7cc117 (patch) | |
tree | 11593a76dff62fd870f78ebf772a67b84145cf73 /include/common | |
parent | 0749f4b0929bf9e4f0afa5bc96a12073b55a2408 (diff) |
add a logging callback mechanism
Diffstat (limited to 'include/common')
-rw-r--r-- | include/common/attributes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common/attributes.h b/include/common/attributes.h index 25e7b7e..e3f538c 100644 --- a/include/common/attributes.h +++ b/include/common/attributes.h @@ -34,8 +34,10 @@ #ifdef __GNUC__ #define ATTR_ALIAS __attribute__((may_alias)) +#define ATTR_FORMAT_PRINTF(fmt, attr) __attribute__((__format__(__printf__, fmt, attr))); #else #define ATTR_ALIAS +#define ATTR_FORMAT_PRINTF(fmt, attr) #endif #if ARCH_X86_64 |