diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-24 03:13:03 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-24 03:13:03 +0100 |
commit | 14dea7c48c1f087167f7cbd6c8ebc4bb9aec2a14 (patch) | |
tree | eb400759f74109d25e4d6059ba7e97467a61576e | |
parent | 6ca508851ae1ba2911e624e03974fd96d30d0bdc (diff) | |
download | prick-14dea7c48c1f087167f7cbd6c8ebc4bb9aec2a14.tar.gz prick-14dea7c48c1f087167f7cbd6c8ebc4bb9aec2a14.tar.bz2 prick-14dea7c48c1f087167f7cbd6c8ebc4bb9aec2a14.zip |
Clean up macros in vec.h
-rw-r--r-- | vec.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -36,19 +36,14 @@ void vec_append(void **ptr, void *data, uint32_t size); void vec_clone(void **dest, void **src); void vec_ensure_remaining(void **ptr, uint32_t space); -#define VEC_IMPL #ifdef VEC_IMPL #include <malloc.h> #include <string.h> -#ifndef MAX +#define VEC_MULT 2 #define MAX(A, B) ((A) > (B) ? (A) : (B)) -#endif - -#ifndef MIN #define MIN(A, B) ((A) < (B) ? (A) : (B)) -#endif void vec_make(void **ptr, uint32_t size) { |