From 11672146b9bf67cae05e8e3207c9bd1e47d52220 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Fri, 5 Jan 2024 04:53:20 -0600 Subject: extracts natives --- src/macros.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/macros.h') 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 -- cgit v1.2.3-70-g09d2