Move the MAX macro to a util.h so it becomes usable in other modules.
Suggested by: Max Okumoto <okumoto@ucsd.edu>
This commit is contained in:
parent
2379f61770
commit
bdea8226c7
@ -55,10 +55,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "sprite.h"
|
||||
#include "util.h"
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns the number of bytes in the buffer. Doesn't include the
|
||||
* null-terminating byte.
|
||||
|
@ -85,6 +85,10 @@ do { \
|
||||
#define ISDOT(c) ((c)[0] == '.' && (((c)[1] == '\0') || ((c)[1] == '/')))
|
||||
#define ISDOTDOT(c) ((c)[0] == '.' && ISDOT(&((c)[1])))
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
void Debug(const char *, ...);
|
||||
void DebugM(const char *, ...);
|
||||
void Error(const char *, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user