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

Internal improvements: ASSERT_EQUAL/DEBUG_STRING macros, new JSON parser, better GMP<->MPFR conversion #189

Merged
merged 5 commits into from
Feb 6, 2024

Conversation

vasdommes
Copy link
Collaborator

  • New ASSERT_EQUAL() and DEBUG_STRING() macros:
int x = 1;
int y = 2;
ASSERT_EQUAL(x,y) // Assertion 'x == y' failed: x='1' x='2'
auto s = DEBUG_STRING(x+x) // s = "x+x='2' "

Now code is more compact and (hopefully) easier to read.
Now code is more compact and (hopefully) easier to read.
Examples:

int x = 1;
int y = 2;
ASSERT_EQUAL(x,y) // Assertion 'x == y' failed: x='1' x='2'
auto s = DEBUG_STRING(x+x) // s = "x+x='2' "
@vasdommes vasdommes added this to the 2.7.0 milestone Feb 6, 2024
@vasdommes vasdommes self-assigned this Feb 6, 2024
@vasdommes vasdommes merged commit 7bc1e2b into master Feb 6, 2024
2 checks passed
@vasdommes vasdommes deleted the internal-improvements branch February 6, 2024 19:43
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.

1 participant