-
Notifications
You must be signed in to change notification settings - Fork 252
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
ddebug submodule update #614
Conversation
This function is stubbed and does nothing.
Reworked ASSERT() and Int3() macros to use SDL_assert(). SDL_assert() allows to debug break from user decision. Major reorganizing platform-dependent code to make it platform-independent.
if (DebugBreak_callback_resume) \ | ||
(*DebugBreak_callback_resume)(); \ | ||
} while (0) | ||
|
||
// Does a DEBUG_BREAK() if debugging is turned on. | ||
#define Int3() \ |
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.
while we're renaming stuff, we should also rename Int3
to something like abort
(you can suggest a better name), Int3 is an assembly instruction without much semantic
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.
There too much Int3()
usage, PR would be much wider. If this OK, I'd propose ABORT()
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.
I'm fine with ABORT
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.
Looks good, tested on Linux Debug & Release builds
Pull Request Type
Description
This PR refactors and unifies ddebug submodule to use
SDL_assert()
for all platforms. SinceSDL_assert()
implements owndebug_break
functionality, bundled version is redundant. Synced DMFC macros with ddebug since there was some compatibility issues. Error handling (pserror.h
) is also moved from misc submodule to ddebug.Related Issues
Screenshots (if applicable)
SDL_assert window on Linux
SDL_assert window on Windows
Checklist
Additional Comments