diff options
author | cbdev <cb@cbcdn.com> | 2019-07-06 17:25:12 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-07-06 17:25:12 +0200 |
commit | b618c4a6b74a52f830ca53029e1cc680d56a2501 (patch) | |
tree | 6da5459b45db4448936cb8f0225490b9f5135b1e /midimonster.h | |
parent | ee75bee08b8fb280fc1d76e8635cf29c576835da (diff) | |
download | midimonster-b618c4a6b74a52f830ca53029e1cc680d56a2501.tar.gz midimonster-b618c4a6b74a52f830ca53029e1cc680d56a2501.tar.bz2 midimonster-b618c4a6b74a52f830ca53029e1cc680d56a2501.zip |
Implement Lua backend
Diffstat (limited to 'midimonster.h')
-rw-r--r-- | midimonster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/midimonster.h b/midimonster.h index 572b5fb..8a18155 100644 --- a/midimonster.h +++ b/midimonster.h @@ -5,6 +5,7 @@ #include <stdint.h> #define max(a,b) (((a) > (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b)) +#define clamp(val,max,min) (((val) > (max)) ? (max) : (((val) < (min)) ? (min) : (val))) #ifdef DEBUG #define DBGPF(format, ...) fprintf(stderr, (format), __VA_ARGS__) #define DBG(message) fprintf(stderr, "%s", (message)) |