sources/basics.h

changeset 51
481073b016a9
parent 32
ee770597a281
child 60
268721e6be20
equal deleted inserted replaced
50:874bbfa55da8 51:481073b016a9
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;

mercurial