Closed tophyr closed 1 week ago
Better fix that does not require compile-time conditionals: Define
OutrageMessageBox
functions for non-debug builds with empty function body inerror.cpp
, and remove all compile guards on function usage
re-worked. i didn't go with the empty body, because the body appears to be there either way already. the RELEASE checks appear to be primarily to avoid string calculations when unnecessary.
Pull Request Type
Description
OutrageMessageBox()
doesn't depend on anything debug-specific - it appears to be conditionally-defined basically just to avoid interrupting the user in release builds. However, the codebase appears to think thatDEBUG
andRELEASE
are perfect opposites, which is not true. (TheRelWithDebInfo
build, in particular, has neither set.)Here we define
OutrageMessageBox
regardless of build type, and let theRELEASE
check determine whether or not it wants to interrupt the user.Checklist