diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-08-04 23:35:13 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-08-04 23:35:13 +0200 |
| commit | 8279a357f6f35d58a4c81d84c3c44a7da687b170 (patch) | |
| tree | 20e4dae3824bb485e34a43e44f6e468ed0afffd0 /include/utils.hpp | |
| parent | 969dd101a08997dc318207b6994201d5161d0bd3 (diff) | |
Fix most warnings
Diffstat (limited to 'include/utils.hpp')
| -rw-r--r-- | include/utils.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/utils.hpp b/include/utils.hpp index cbc92b3..83a867f 100644 --- a/include/utils.hpp +++ b/include/utils.hpp @@ -31,16 +31,17 @@ inline int32_t randi(int32_t min, int32_t max) { } inline float clamp(float x, float min, float max) { - if (x < min) return min; - if (x > max) return max; + if (x < min) { return min; } + if (x > max) { return max; } return x; } -#include <windows.h> #if defined(WINDOWS) + +#include <windows.h> + void log_last_error(); -#endif class watcher { public: @@ -61,3 +62,4 @@ private: inline static std::unordered_map<std::string, std::function<void()>> callbacks; inline static std::unordered_map<std::string, watch_data> watched_dirs; }; +#endif |
