Bug 245861

Summary: [WGSL] Remove RETURN_NODE_REF_NO_ARGS from Parser
Product: WebKit Reporter: Dan Glastonbury <djg>
Component: WebGPUAssignee: 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:    

Dan Glastonbury
Reported 2022-09-29 21:01:07 PDT
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
Attachments
Radar WebKit Bug Importer
Comment 1 2022-09-29 21:01:31 PDT
Dan Glastonbury
Comment 2 2023-02-19 16:19:07 PST
*** This bug has been marked as a duplicate of bug 252233 ***
Note You need to log in before you can comment on or make changes to this bug.