Replaces VARARG_8 uses with recursive macros (#4232)

This commit is contained in:
Nephrite
2024-04-06 02:42:11 +09:00
committed by GitHub
parent db42d2b5a4
commit 93af96c10c
5 changed files with 40 additions and 82 deletions

View File

@@ -26,6 +26,9 @@
#define STR(...) STR_(__VA_ARGS__)
#define STR_(...) #__VA_ARGS__
/* You'll never guess what this one does */
#define APPEND_SEMICOLON(a) a;
/* Converts a string to a compound literal, essentially making it a pointer to const u8 */
#define COMPOUND_STRING(str) (const u8[]) _(str)