Skip to content

Fix: allow empty default argument in macro definition#117

Merged
dalance merged 1 commit into
dalance:masterfrom
ds54e:feature/parser-accept-empty-default-in-macro
Nov 1, 2025
Merged

Fix: allow empty default argument in macro definition#117
dalance merged 1 commit into
dalance:masterfrom
ds54e:feature/parser-accept-empty-default-in-macro

Conversation

@ds54e

@ds54e ds54e commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

Fixes #116

Previously, macros like the following expanded incorrectly:

`define REAL(name, suffix=) real name``suffix;

This change updates the parser to correctly handle empty defaults.

@dalance

dalance commented Nov 1, 2025

Copy link
Copy Markdown
Owner

Thank you for your contribution!
I'll merge this PR.

@dalance
dalance merged commit c7cff42 into dalance:master Nov 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Macro with empty default argument fails to expand correctly

2 participants