diff options
author | David Robillard <d@drobilla.net> | 2024-11-16 13:16:45 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:02:59 -0500 |
commit | eac84848484e314858d331fe707559453e0abe26 (patch) | |
tree | ed61b88e1a69fc9434af1cb315bf3e5807ec7da4 /src/jalv.c | |
parent | 245c93daa3b902a1a9267069df9e632cede6a018 (diff) | |
download | jalv-eac84848484e314858d331fe707559453e0abe26.tar.gz jalv-eac84848484e314858d331fe707559453e0abe26.tar.bz2 jalv-eac84848484e314858d331fe707559453e0abe26.zip |
Move utility macros to a separate file
Diffstat (limited to 'src/jalv.c')
-rw-r--r-- | src/jalv.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -9,6 +9,7 @@ #include "jalv_internal.h" #include "log.h" #include "lv2_evbuf.h" +#include "macros.h" #include "nodes.h" #include "port.h" #include "state.h" @@ -55,18 +56,6 @@ #include <stdlib.h> #include <string.h> -#ifndef MIN -# define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#endif - -#ifndef MAX -# define MAX(a, b) (((a) > (b)) ? (a) : (b)) -#endif - -#ifndef ARRAY_SIZE -# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -#endif - /** Size factor for UI ring buffers. |