Fixed clang compilation and added support for making assertions and erros throw exceptions for easier testing.
This commit is contained in:
@@ -8,6 +8,14 @@
|
||||
#define MIJIN_WITH_EXCEPTIONS 0
|
||||
#endif
|
||||
|
||||
#if !defined(MIJIN_THROWING_ASSERTS)
|
||||
#define MIJIN_THROWING_ASSERTS 0
|
||||
#endif
|
||||
|
||||
#if MIJIN_THROWING_ASSERTS && !defined(MIJIN_TEST_NO_NOEXCEPT)
|
||||
#define MIJIN_TEST_NO_NOEXCEPT
|
||||
#endif
|
||||
|
||||
#if MIJIN_WITH_EXCEPTIONS
|
||||
#error "Maybe someday"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user