diff options
Diffstat (limited to 'src/macros.h')
| -rw-r--r-- | src/macros.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h index 91924ca..668816c 100644 --- a/src/macros.h +++ b/src/macros.h @@ -46,7 +46,10 @@ #define L2_URL_RESOURCES_BASE "https://resources.download.minecraft.net" #ifdef __GNUC__ -#define L2_FORMAT(_flavor, _stridx, _argidx) __attribute__((format (_flavor, _stridx, _argidx))) +#define L2_GNU_ATTRIBUTE(_x) __attribute__(_x) + +#define L2_FORMAT(_flavor, _stridx, _argidx) L2_GNU_ATTRIBUTE((format (_flavor, _stridx, _argidx))) +#define L2_SENTINEL L2_GNU_ATTRIBUTE((sentinel)) #else #define L2_FORMAT(_unused1, _unused2, _unused3) #endif |
