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 (const String& a) -> void; |
65 FUNCTION print_to_console (const String& a) -> void; |
|
66 FUNCTION request_exit() -> void; |
66 |
67 |
67 template<typename T> inline FUNCTION |
68 template<typename T> inline FUNCTION |
68 clamp (T a, T b, T c) -> T |
69 clamp (T a, T b, T c) -> T |
69 { |
70 { |
70 return (a < b) ? b : (a > c) ? c : a; |
71 return (a < b) ? b : (a > c) ? c : a; |
71 } |
72 } |
|
73 |
|
74 struct Exitception {}; |