Menu

logicals.h

Mark Hobley

logicals.h

The logicals.h header file is part of the mheaders library. It provides typedefs and macros to represent logical values and provides logical determinate functions.
Macros provided by logicals.h

The logicals.h header defines the following macros:
Macro Description
FLAG A typedef used for a boolean flag
FALSE Evaluates to a numeric value of zero
TRUE Evaluates to a numeric value of one
iftrue Conditional branching based on an expression being nonzero
iffalse Conditional branching based on an expression being zero
ifset Conditional branching based on an expression being nonzero
ifunset Conditional branching based on an expression being zero
ifz Conditional branching based on an expression being zero
ifnz Conditional branching based on an expression being nonzero
ifnull Conditional branching based on a pointer being a nullpointer
ifnotnull Conditional branching based on a pointer not being a nullpointer
istrue Used in decision making to determine that an expression is nonzero
isfalse Used in decision making to determine that an expression is zero
isset Used in decision making to determine that an expression is nonzero
isunset Used in decision making to determine that an expression is zero
isnull Used in decision making to determine that a pointer is a nullpointer
isnotnull Used in decision making to determine that a pointer is not a nullpointer
OK Evaluates to a numeric value of zero
NOTOK Evaluates to a numeric value of minus one
SET Evaluates to a numeric value of one
UNSET Evaluates to a numeric value of zero
ZERO Evaluates to a numeric value of zero
fallthrough A null statement used to mark a fallthrough in a switch conditional


Related

Wiki: Home