-
Notifications
You must be signed in to change notification settings - Fork 818
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
Deprecate PJ_ENABLE_EXTRA_CHECK macro #3008
Conversation
*/ | ||
#if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK != 0 |
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.
For deprecation, we normally comment it first instead of directly removing it.
/* PJ_ENABLE EXTRA_CHECK is deprecated in PJSIP 2.13. */
// #if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK != 0
pjlib/include/pj/config.h
Outdated
* | ||
* PJ_ENABLE_EXTRA_CHECK has been deprecated in 2.13. | ||
*/ | ||
#if defined(PJ_ENABLE_EXTRA_CHECK) |
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.
If user explicitly enable it, I think we don't need to give any warning to minimise any inconvenience (user may need to remove the setting and rebuild the entire library). The behavior doesn't change anyway.
So we should only give warning if PJ_ENABLE_EXTRA_CHECK==0.
* Deprecate PJ_ENABLE_EXTRA_CHECK macro * Modification based on comments
* Deprecate PJ_ENABLE_EXTRA_CHECK macro * Modification based on comments
This ticket will deprecate
PJ_ENABLE_EXTRA_CHECK
macro. Initially, it is intended to reduce size on assertion checks.