Removed some of the unused exception stuff.
This commit is contained in:
parent
9ba097fc2f
commit
3d4ae9678f
@ -20,12 +20,6 @@
|
||||
#define MIJIN_THROWS noexcept
|
||||
#define MIJIN_CONDITIONAL_NOEXCEPT(...) noexcept(__VA_ARGS__)
|
||||
#endif
|
||||
#define MIJIN_EXCEPT_CHOOSE(noexceptType, exceptType) noexceptType
|
||||
#define MIJIN_THROW_OR_RETURN(value, exception) return (value)
|
||||
#define MIJIN_RETURN_SUCCESS(value) return (value)
|
||||
#endif
|
||||
|
||||
#define MIJIN_ERROR_BOOL MIJIN_EXCEPT_CHOOSE([[nodiscard]] bool, void)
|
||||
#define MIJIN_THROW_OR_RETURN_STD(value, message) MIJIN_THROW_OR_RETURN(value, std::runtime_error(message))
|
||||
|
||||
#endif // !defined(MIJIN_INTERNAL_EXCEPTION_HPP_INCLUDED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user