sources/basics.h

changeset 60
268721e6be20
parent 51
481073b016a9
child 70
0e947b487b18
--- a/sources/basics.h	Tue Dec 16 03:27:54 2014 +0200
+++ b/sources/basics.h	Tue Dec 16 03:30:15 2014 +0200
@@ -44,6 +44,11 @@
 using std::min;
 using std::max;
 
+template<typename Signature>
+using Function = std::function<Signature>;
+
+// -------------------------------------------------------------------------------------------------
+//
 enum Color
 {
 	BLACK,
@@ -59,15 +64,18 @@
 	NUM_COLORS
 };
 
-template<typename Signature>
-using Function = std::function<Signature>;
-
+// -------------------------------------------------------------------------------------------------
+//
 FUNCTION print_to_console (String a) -> void;
 
+// -------------------------------------------------------------------------------------------------
+//
 template<typename T> inline FUNCTION
 clamp (T a, T b, T c) -> T
 {
 	return (a < b) ? b : (a > c) ? c : a;
 }
 
+// -------------------------------------------------------------------------------------------------
+//
 struct Exitception {};

mercurial