Skip to content

Commit

Permalink
Add missing enet/utility.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Aug 13, 2024
1 parent e22bc43 commit bfe35f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/enet/utility.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
@file utility.h
@brief ENet utility header
*/
#ifndef __ENET_UTILITY_H__
#define __ENET_UTILITY_H__

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

#endif /* __ENET_UTILITY_H__ */

0 comments on commit bfe35f6

Please sign in to comment.