Skip to content

program: Use macro for conditional logging#75

Merged
febo merged 1 commit into
mainfrom
febo/cfg-log
Jun 2, 2026
Merged

program: Use macro for conditional logging#75
febo merged 1 commit into
mainfrom
febo/cfg-log

Conversation

@febo
Copy link
Copy Markdown
Contributor

@febo febo commented Jun 2, 2026

Problem

The program implementation uses conditional logging for the instruction name, but currently there is a bit of code repetition that can be avoided.

Solution

Create a simple macro_rules to encapsulate the cfg gating of the log message.

@febo febo requested a review from joncinque June 2, 2026 09:44
@febo febo merged commit e02b530 into main Jun 2, 2026
21 checks passed
@febo febo deleted the febo/cfg-log branch June 2, 2026 10:03
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.

2 participants