17 lines
229 B
C
17 lines
229 B
C
#ifndef _UTILS_H
|
|
#define _UTILS_H
|
|
|
|
#define DECR(x,n) x-=n
|
|
#define INCR(x,n) x+=n
|
|
|
|
#ifndef MAX
|
|
#define MAX(a,b) (a>b?a:b)
|
|
#endif
|
|
#ifndef MIN
|
|
#define MIN(a,b) (a<b?a:b)
|
|
#endif
|
|
|
|
// in error.c!
|
|
void error(reg_t *R,error_t e);
|
|
#endif
|