Bug 24397 – Support C preprocessor function-like macros

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-02-17T07:34:44Z
Last change time
2024-02-19T16:56:44Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2024-02-17T07:34:44Z
Macros like: #define abc(a, b) a + b can be replaced with: auto abc(T1, T2)(T1 a, T2 b) { return a + b; }
Comment #1 by bugzilla — 2024-02-17T07:37:29Z
Comment #2 by dlang-bot — 2024-02-17T19:41:50Z
@WalterBright updated dlang/dmd pull request #16199 " fix bugzilla ImportC: support function-like macros" fixing this issue: - fix bugzilla Issue 24397 ImportC: support function-like macros https://github.com/dlang/dmd/pull/16199
Comment #3 by dlang-bot — 2024-02-19T16:56:44Z
dlang/dmd pull request #16199 " fix bugzilla Issue 24397 ImportC: support function-like macros" was merged into master: - 52324707f8a2830d7477e339beed0f98383352b1 by Walter Bright: fix bugzilla Issue 24397 ImportC: support function-like macros https://github.com/dlang/dmd/pull/16199