min and max macros

This commit is contained in:
Nedko Arnaudov 2009-12-12 17:10:38 +02:00
parent 4a807234f7
commit e5fe8dbc99
1 changed files with 3 additions and 0 deletions

View File

@ -43,4 +43,7 @@
#include "log.h" /* log macros */
#include "assert.h" /* assert macros */
#define ladish_max(a, b) ((a) > (b) ? (a) : (b))
#define ladish_min(a, b) ((a) < (b) ? (a) : (b))
#endif /* #ifndef COMMON_H__82C9504A_ACD2_435D_9743_781943473E6A__INCLUDED */