sources/basics.h

changeset 27
089e37c0887e
parent 17
50341dec533e
child 32
ee770597a281
equal deleted inserted replaced
26:24c7b804c99f 27:089e37c0887e
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 {};

mercurial