Skip to content

fix: expand nested macro arguments - #378

Merged
aspizu merged 1 commit into
mainfrom
apz/fix-nested-macro-expansion
Sep 8, 2026
Merged

fix: expand nested macro arguments#378
aspizu merged 1 commit into
mainfrom
apz/fix-nested-macro-expansion

Conversation

@aspizu

@aspizu aspizu commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Nested calls such as ADD10(ADD10(4)) leave the inner macro unexpanded and fail with unrecognized function. Expand referenced arguments before suppressing the outer macro in its replacement body, while preserving recursion suppression and leaving unused arguments unexpanded. Report argument-expansion errors at the macro call site.

Validated with cargo check --offline, cargo test --offline (12 tests), and formatting checks for the changed file. On macOS, both reported examples compile and emit say 14 and say 24; all 12 existing fixture projects also compile. CLI validation used std = "0.0.0" to avoid an unrelated sandbox network-initialization panic.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T19:52:14.147824Z 3b9980e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aspizu
aspizu merged commit 2289962 into main Sep 8, 2026
6 checks passed
@aspizu
aspizu deleted the apz/fix-nested-macro-expansion branch September 8, 2026 19:52
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.

1 participant