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

Deprecate PJ_ENABLE_EXTRA_CHECK macro #3008

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

trengginas
Copy link
Member

This ticket will deprecate PJ_ENABLE_EXTRA_CHECK macro. Initially, it is intended to reduce size on assertion checks.

@trengginas trengginas added this to the release-2.13 milestone Mar 7, 2022
@trengginas trengginas requested review from sauwming and nanangizz March 7, 2022 06:58
@trengginas trengginas self-assigned this Mar 7, 2022
*/
#if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK != 0
Copy link
Member

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

*
* PJ_ENABLE_EXTRA_CHECK has been deprecated in 2.13.
*/
#if defined(PJ_ENABLE_EXTRA_CHECK)
Copy link
Member

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.

@trengginas trengginas merged commit 94886d7 into master Mar 8, 2022
@trengginas trengginas deleted the deprecate-enable-extra-check branch March 8, 2022 03:27
warting pushed a commit to warting/pjproject that referenced this pull request Mar 8, 2022
* Deprecate PJ_ENABLE_EXTRA_CHECK macro

* Modification based on comments
arunmitel pushed a commit to mitel-networks/pjproject that referenced this pull request Aug 17, 2022
* Deprecate PJ_ENABLE_EXTRA_CHECK macro

* Modification based on comments
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.

3 participants