-
-
Notifications
You must be signed in to change notification settings - Fork 0
Zero
BSFishy edited this page Feb 25, 2020
·
1 revision
A simple check to see if a value is equal to zero.
This is basically a cleaner and more expressive way of writing Value == 0
.
This can be useful for when you want to check if a pointer is null.
Arguments:
-
Value
: The value to compare with zero.
Example:
Assert(Zero(0)); // Passes
Assert(Zero(1)); // Fails