MACRO
OMNI_NO_THROW
- Disables exceptions (throw keyword) in the library.
DESCRIPTION top
By specifying the
By specifying the
OMNI_NO_THROW
preprocessor flag, the library will not throw any exceptions specific to the library.
CONSIDERATIONS top
By specifying this flag, the library will have no way of alerting the user if an error happened. You can specify the OMNI_TERMINATE_ON_ERR flag and the
By specifying this flag, the library will have no way of alerting the user if an error happened. You can specify the OMNI_TERMINATE_ON_ERR flag and the
std::terminate
function will be called on error. If neither flag is specified and an error is detected the library will either return from the function or proceed as normal, both could have unintended consequences if not handled properly; in other words, undefined behaviour could result.