diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-06 21:18:28 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-06 21:18:28 +0300 |
| commit | 653d4b248e18f71eebea57cb39895fdb68f5c885 (patch) | |
| tree | 3b86e7afe5d16899d691122c3271944dc41d324e /parts/symbol.h | |
| parent | e37eccfabbc5c626791e9698cc6c5fb1ec335625 (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 |
