0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Adding MIN()/MAX() macros

This commit is contained in:
Pavel Machek 1998-07-09 19:36:05 +00:00
parent aea2dcabdc
commit cf3527e2f4

View File

@ -15,6 +15,10 @@
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
/* Utility-Macros */
#define MIN(a,b) ((a<b)?a:b)
#define MAX(a,b) ((a>b)?a:b)
/* Functions which don't return */
#define NORET __attribute__((noreturn))