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

Assertions, Warnings and Errors should be functions #254

Closed
Pencilcaseman opened this issue Oct 27, 2023 · 0 comments
Closed

Assertions, Warnings and Errors should be functions #254

Pencilcaseman opened this issue Oct 27, 2023 · 0 comments

Comments

@Pencilcaseman
Copy link
Member

Pencilcaseman commented Oct 27, 2023

The LIBRAPID_ASSERT macro and similar should be refactored into functions. The macros can still exist but should expand to function calls.

This has many benefits, including:

  • Faster compilation
  • Less cluttered code
  • More control over program flow
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

No branches or pull requests

1 participant