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

Replace assert with rbs_assert for better assertion message #23

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Mar 17, 2025

@st0012 st0012 changed the title Replace assert with rbs_assert for better assertion messages Replace assert with rbs_assert for better assertion message Mar 17, 2025
Copy link

@amomchilov amomchilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice


#include <stddef.h>

void rbs_assert(int condition, const char *fmt, ...);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
void rbs_assert(int condition, const char *fmt, ...);
void rbs_assert(bool condition, const char *fmt, ...);

@st0012 st0012 force-pushed the introduce-rbs-assert branch 2 times, most recently from acc59d3 to 877f2ee Compare March 17, 2025 17:07
@st0012 st0012 force-pushed the introduce-rbs-assert branch from 877f2ee to 16e8ce1 Compare March 17, 2025 17:15
@st0012 st0012 merged commit 2c74261 into c-api Mar 17, 2025
19 checks passed
@st0012 st0012 deleted the introduce-rbs-assert branch March 17, 2025 17:21
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