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

Usage notes for DEV_ASSERT macro #80156

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

lawnjelly
Copy link
Member

Make it more clear that DEV_ASSERT is only to be used in specific cases.

Notes

  • Some contributors had been using DEV_ASSERT in places better suited to other error macros (e.g. Refactor mouse_entered and mouse_exited signals #67791 ), this should make it more clear when to use, both for contributors and production team.
  • If in doubt for a particular case ask core team.
  • Welcome any ideas for better wording.

@lawnjelly lawnjelly added this to the 4.x milestone Aug 2, 2023
@lawnjelly lawnjelly requested a review from a team as a code owner August 2, 2023 08:20
@lawnjelly lawnjelly changed the title Usage nodes for DEV_ASSERT macro Usage notes for DEV_ASSERT macro Aug 2, 2023
@lawnjelly lawnjelly force-pushed the dev_assert_note branch 2 times, most recently from eae4bde to 9172303 Compare August 2, 2023 11:22
core/error/error_macros.h Outdated Show resolved Hide resolved
Make it more clear that DEV_ASSERT is only to be used in specific cases.
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Aug 2, 2023
@YuriSizov YuriSizov merged commit f415200 into godotengine:master Aug 2, 2023
@YuriSizov
Copy link
Contributor

Thanks!

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.

5 participants