61 |
61 |
62 template<typename Signature> |
62 template<typename Signature> |
63 using Function = std::function<Signature>; |
63 using Function = std::function<Signature>; |
64 |
64 |
65 FUNCTION print_to_console (String a) -> void; |
65 FUNCTION print_to_console (String a) -> void; |
66 FUNCTION request_exit() -> void; |
|
67 |
66 |
68 template<typename T> inline FUNCTION |
67 template<typename T> inline FUNCTION |
69 clamp (T a, T b, T c) -> T |
68 clamp (T a, T b, T c) -> T |
70 { |
69 { |
71 return (a < b) ? b : (a > c) ? c : a; |
70 return (a < b) ? b : (a > c) ? c : a; |