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:
parent
aea2dcabdc
commit
cf3527e2f4
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user