Disable Safety
You may not implement some safety algorithms of the API. There is a preprocessor define for manipulating an implementation for this. API does not implement related safety measures if this preprocessor is defined.
Disables:
- Null pointer checking
- Boundary checking for array, slice, or any contiguous memory structure
- Type compatibility checking for casting
anytype, traits, etc. - Catching divide-by-zero undefined behavior for relevant math functions
To do this, define the __JULE_DISABLE__SAFETY macro before include relevant headers.
TIP
API provides safety measures separately, so you can use unsafe versions where needed. So you can avoid disabling safety for the whole program.
For example:
cpp
#define __JULE_DISABLE__SAFETY
#include "api/jule.hpp"