diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 10:18:22 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 10:18:22 +0100 |
commit | 798948dbe6f012e194f053c4e862cf697f30b793 (patch) | |
tree | 32c71420d1188f98cfb41b6f0d9536c5fa4bf5a7 /backend/util.hpp | |
parent | d7012045bb61f117fb7b9c51ddd03e4c54f25fe6 (diff) |
more WIP (move some Player things to backend)
Diffstat (limited to 'backend/util.hpp')
-rw-r--r-- | backend/util.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/util.hpp b/backend/util.hpp new file mode 100644 index 0000000..58b7977 --- /dev/null +++ b/backend/util.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include "util.h" + +template <typename T> +inline T min(const T & a, const T & b) { + return a < b ? a : b; +} + +template <typename T> +inline T max(const T & a, const T & b) { + return a < b ? b : a; +} + |