diff options
author | kartofen <mladenovnasko0@gmail.com> | 2025-07-06 21:18:28 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2025-07-06 21:18:28 +0300 |
commit | b4261ac4a79651bd8fd1bd03d38bbf49ee89b615 (patch) | |
tree | 3b86e7afe5d16899d691122c3271944dc41d324e /parts/symbol.h | |
parent | b65dd53885eabb8f39a3115039563edc08efb2b4 (diff) |
modular table building
Diffstat (limited to 'parts/symbol.h')
-rw-r--r-- | parts/symbol.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/parts/symbol.h b/parts/symbol.h index 2e9c30c..dea457e 100644 --- a/parts/symbol.h +++ b/parts/symbol.h @@ -10,8 +10,9 @@ extern int (*symbol_is_input_end)(symbol s); extern int (*symbol_is_valid)(symbol s); // helper macro -#define IMPLEMENT_FUNCPTR(type, name, args, ...) \ - type __##name args __VA_ARGS__ \ - type (*name) args = __##name; +#define IMPLEMENT_FUNCPTR(type, name, args) \ + type __##name args; \ + type (*name) args = __##name; \ + type __##name args #endif |