diff options
author | pommicket <pommicket@gmail.com> | 2022-12-06 14:29:40 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-06 14:29:40 -0500 |
commit | 80400babc4a95edc4e4c96e85af79301cdffae69 (patch) | |
tree | b7af6472c2c4a175edb398f22a426526265e4b42 /base.h | |
parent | ac3a7a0c40864339b4c94ab3f58f8dd5d144ed2e (diff) |
more work on lsp
Diffstat (limited to 'base.h')
-rw-r--r-- | base.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -111,6 +111,12 @@ typedef unsigned long long ullong; #define WarnUnusedResult #endif +#if __GNUC__ +#define ATTRIBUTE_PRINTF(fmt_idx, arg_idx) __attribute__ ((format(printf, fmt_idx, arg_idx))) +#else +#define ATTRIBUTE_PRINTF(fmt_idx, arg_idx) +#endif + #define Status bool WarnUnusedResult // false = error, true = success #define arr_count(a) (sizeof (a) / sizeof *(a)) |