diff options
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h new file mode 100644 index 0000000..bb21e1b --- /dev/null +++ b/src/macros.h @@ -0,0 +1,15 @@ +// Copyright 2016-2023 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC + +#ifndef PUGL_SRC_MACROS_H +#define PUGL_SRC_MACROS_H + +#ifndef MIN +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef MAX +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +#endif // PUGL_SRC_MACROS_H |