- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Unify asserts in the interpexec.cpp #121213
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
base: main
Are you sure you want to change the base?
Conversation
There was a mix of using `assert` and `_ASSERTE` in this file. The `assert` is a pain for local testing on Windows, as it pops out a dialog box when the assert fires. This change unifies all of them to `_ASSERTE`.
| Tagging subscribers to this area: @BrzVlad, @janvorli, @kg | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR unifies assertion macros in the interpexec.cpp file by replacing all instances of assert with _ASSERTE to improve the Windows development experience by avoiding dialog popups during local testing.
- Replaced 12 instances of assertwith_ASSERTEthroughout the file
- Maintained identical assertion logic and conditions
- Improved debugging experience for Windows developers
| break; | ||
| default: | ||
| assert(!"Unimplemented or invalid interpreter opcode"); | ||
| _ASSERTE(!"Unimplemented or invalid interpreter opcode"); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be something other than asserte, it's not recoverable and should be a failure even in release builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, this should rather be a fail fast, as it it unrecoverable.
There was a mix of using
assertand_ASSERTEin this file. Theassertis a pain for local testing on Windows, as it pops out a dialog box when the assert fires.This change unifies all of them to
_ASSERTE.