Skip to content

Fix JSON_USE_EXCEPTION=0 use case #940

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

Merged
merged 1 commit into from
Jun 21, 2019
Merged

Fix JSON_USE_EXCEPTION=0 use case #940

merged 1 commit into from
Jun 21, 2019

Conversation

baylesj
Copy link
Contributor

@baylesj baylesj commented Jun 6, 2019

This patch fixes the JSON_USE_EXCEPTION flag. Currently, due to the
throwRuntimeError and throwLogicError methods implemented in json_value,
even if JSON_USE_EXCEPTION is set to 0 jsoncpp will still throw. This
breaks integration into projects with -fno-exceptions set, such as
Chromium.

This patch fixes the JSON_USE_EXCEPTION flag. Currently, due to the
throwRuntimeError and throwLogicError methods implemented in json_value,
even if JSON_USE_EXCEPTION is set to 0 jsoncpp will still throw. This
breaks integration into projects with -fno-exceptions set, such as
Chromium.
@cdunn2001 cdunn2001 merged commit 83cc921 into open-source-parsers:master Jun 21, 2019
@baylesj baylesj mentioned this pull request Jun 26, 2019
@milabs
Copy link

milabs commented Jun 26, 2019

OMG, abort instead of error code that's hilarious IRLOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants