Skip to content

Make user error msgs in PushStyleVar() and its variants more precise#9221

Open
GrayWolf64 wants to merge 1 commit intoocornut:masterfrom
GrayWolf64:GrayWolf64-patch-1
Open

Make user error msgs in PushStyleVar() and its variants more precise#9221
GrayWolf64 wants to merge 1 commit intoocornut:masterfrom
GrayWolf64:GrayWolf64-patch-1

Conversation

@GrayWolf64
Copy link

I think this can be an improvement compared with previous 4 duplicate error messages.

@ocornut
Copy link
Owner

ocornut commented Feb 12, 2026

The 3 messages are the same because it felt it was unnecessary to add extra string data to the code when the messages are so similar. As the error usually leads to an assert you would identify the callstack immediately, don't you think so?

@GrayWolf64
Copy link
Author

That's true. Thanks for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants