Skip to content
Snippets Groups Projects
Commit 83ff868c authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

added option to use throwing assert or real assert

parent 26aa52da
No related branches found
No related tags found
No related merge requests found
Pipeline #4782 failed
#ifndef throw_asssert
#ifdef use_throwing_assert
#define throw_assert(a) { if(!(a)) throw std::invalid_argument(#a); }
#else
#include <assert.h>
#define throw_assert(a) { assert(a); }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment