diff options
author | Stef Walter <stef@memberwebs.com> | 2006-03-17 17:27:28 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-03-17 17:27:28 +0000 |
commit | 0fe9ee8d6a212e5b676f327b727c9d404edc7781 (patch) | |
tree | 04d82f477cb92f86db1d38f8e92c4597091ca2c0 /module/usuals.h | |
parent | 30702442c8a4b0ce65a7ce05166004de6325911d (diff) |
Move src/ to module/ subdir
Diffstat (limited to 'module/usuals.h')
-rw-r--r-- | module/usuals.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/module/usuals.h b/module/usuals.h new file mode 100644 index 0000000..6dc7b08 --- /dev/null +++ b/module/usuals.h @@ -0,0 +1,32 @@ + +#ifndef __USUALS_H__ +#define __USUALS_H__ + +#include <sys/types.h> + +#include "config.h" + +#include <errno.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#ifndef max +#define max(a,b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef min +#define min(a,b) (((a) < (b)) ? (a) : (b)) +#endif + +#define countof(x) (sizeof(x) / sizeof(x[0])) + +#ifdef _DEBUG + #include "assert.h" + #define ASSERT(x) assert(x) +#else + #define ASSERT(x) +#endif + +#endif /* __USUALS_H__ */ |