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:
Hartmut Brandt 2005-03-31 11:12:45 +00:00
parent 9477d73e32
commit ae6bff540a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144386
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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 *, ...);