Bug 245861 - [WGSL] Remove RETURN_NODE_REF_NO_ARGS from Parser
Summary: [WGSL] Remove RETURN_NODE_REF_NO_ARGS from Parser
Status: RESOLVED DUPLICATE of bug 252233
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 252233
Blocks:
  Show dependency treegraph
 
Reported: 2022-09-29 21:01 PDT by Dan Glastonbury
Modified: 2023-02-19 16:19 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Glastonbury 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
Comment 1 Radar WebKit Bug Importer 2022-09-29 21:01:31 PDT
<rdar://problem/100595632>
Comment 2 Dan Glastonbury 2023-02-19 16:19:07 PST

*** This bug has been marked as a duplicate of bug 252233 ***