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

[Core] Warn rather than crash when MeasureTextFunction is null #88

Closed
EmmanuelMess opened this issue Dec 23, 2024 · 2 comments
Closed

Comments

@EmmanuelMess
Copy link

Add some kind of warning for forgeting Clay_SetMeasureTextFunction and using the CLAY_TEXT, maybe on compilation, because right now it just segfaults.

@nicbarker
Copy link
Owner

Thanks for the suggestion, I'll open a PR for this in a minute 🙂

@nicbarker nicbarker changed the title Please add a warning for missing MeasureText [Core] Warn rather than crash when MeasureTextFunction is null Dec 24, 2024
@nicbarker
Copy link
Owner

This was fixed in 04694b0 🙂

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

No branches or pull requests

2 participants