Introduce shared/defines.h to collect commonly used macros. For now

it defines min() / max() macros.
This commit is contained in:
mmdolze
2009-11-22 15:15:53 +00:00
parent 30447dd905
commit 73b7ec00ff
12 changed files with 35 additions and 25 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
#ifndef LCDVC_H
#define LCDVC_H
#include "shared/defines.h"
#define CHAIN(e,f) { if( e>=0 ) { e=(f); }}
#define CHAIN_END(e) { if( e<0 ) { report( RPT_CRIT,"Critical error, abort"); exit(e); }}
#define min(a,b) ((a)<(b))?(a):(b)
#define UNSET_INT -1
#define UNSET_STR "\01"