aboutsummaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2024-01-05 04:53:20 -0600
committerLibravatar bigfoot547 <[email protected]>2024-01-05 04:53:20 -0600
commit11672146b9bf67cae05e8e3207c9bd1e47d52220 (patch)
tree4d72fd88efbabeeb37509cdc99c5404528183ca1 /src/macros.h
parentdownloads assets correctly (diff)
extracts natives
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h5
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