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

Include missing key value in assert message #6

Open
wants to merge 3 commits into
base: mujin
Choose a base branch
from

Conversation

rschlaikjer
Copy link

This adds the macro RAPIDJSON_ASSERT_MSG, which by default proxies back to the base RAPIDJSON_ASSERT.

With the cassert backend it only works for literal messages, since cassert relies on macro stringification, but by overriding it to use BOOST_ASSERT_MSG it's possible to use dynamic messages.

To take advantage of the new behaviour, callers should add

add_definitions("-DRAPIDJSON_ASSERT_MSG=BOOST_ASSERT_MSG")

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.

2 participants