Navigation Menu

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

Allow to use more complex string expressions as assert() messages #2319

Merged
merged 1 commit into from Sep 5, 2021

Conversation

MoritzBrueckner
Copy link
Collaborator

Previously only string literals were allowed as optional messages in the new assert() macro. Now you can use variables and concatenated or interpolated strings in the last parameter (and probably everything that can be converted to string somehow). This is helpful if you want to have a message like 'No trait with the name "$name" found'.

Thanks to @QuantumCoderQC for reporting this!

@luboslenco luboslenco merged commit 974181e into armory3d:master Sep 5, 2021
@MoritzBrueckner MoritzBrueckner deleted the assert-string-expr branch September 6, 2021 16:20
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.

None yet

2 participants