ENet: include/enet/utility.h File Reference

ENet v1.3.18 Reliable UDP networking library

Macros
utility.h File Reference

ENet utility header. More...

## Macros
#define | ENET_DIFFERENCE(x, y) ((x) < (y) ? (y) - (x) : (x) - (y))
#define | ENET_MAX(x, y) ((x) > (y) ? (x) : (y))
#define | ENET_MIN(x, y) ((x) < (y) ? (x) : (y))

## Detailed Description

ENet utility header.

## Macro Definition Documentation

## ◆ ENET_DIFFERENCE

#define ENET_DIFFERENCE | ( |  | x,
|  |  | y
| ) |  | ((x) < (y) ? (y) - (x) : (x) - (y))

## ◆ ENET_MAX

#define ENET_MAX | ( |  | x,
|  |  | y
| ) |  | ((x) > (y) ? (x) : (y))

## ◆ ENET_MIN

#define ENET_MIN | ( |  | x,
|  |  | y
| ) |  | ((x) < (y) ? (x) : (y))