| Summary: | [WGSL] Remove RETURN_NODE_REF_NO_ARGS from Parser | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dan Glastonbury <djg> |
| Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 252233 | ||
| Bug Blocks: | |||
*** This bug has been marked as a duplicate of bug 252233 *** |
This comment in Parser.cpp: ``` // Passing 0 arguments beyond the type to RETURN_NODE_REF is invalid because of a stupid limitation of the C preprocessor #define RETURN_NODE_REF_NO_ARGS(type) \ return { makeUniqueRef<AST::type>(CURRENT_SOURCE_SPAN()) }; ``` Change be fixed with __VA_OPT__ https://stackoverflow.com/questions/68484818/function-like-macros-with-c20-va-opt-error-in-manual-code