Enforces truthiness of a given boolean value by throwing an exception in case of violation.
Public Static Functions
-
static inline void enforce(bool b)
Enforces that b is true and throws an Exception otherwise.
- Parameters:
b – Boolean value whose truthiness should be enforced