Introduce shared/defines.h to collect commonly used macros. For now
it defines min() / max() macros.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user