Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug_print macro so it correctly treats variables #462

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

wingertge
Copy link
Contributor

The debug_print macro was incorrectly treating variables as plain verbatim paths, so it wasn't updating the scope with a usage (leading to use after move) and wasn't properly expanding globals (leading to things like UNIT_POS always printing 2). This fixes those issues by parsing the argument list as a Vec<Expression>.

@nathanielsimard nathanielsimard merged commit a172f67 into tracel-ai:main Feb 2, 2025
5 checks passed
@wingertge wingertge deleted the fix/debug-print branch February 2, 2025 21:29
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