diff -r 00a084f8ed26 -r 268721e6be20 sources/format.h --- a/sources/format.h Tue Dec 16 03:27:54 2014 +0200 +++ b/sources/format.h Tue Dec 16 03:30:15 2014 +0200 @@ -36,10 +36,8 @@ #define FORMAT_OVERLOAD(...) \ inline FUNCTION make_format_argument (__VA_ARGS__ a) -> String -// // ------------------------------------------------------------------------------------------------- // - FORMAT_OVERLOAD (String) { return a; } FORMAT_OVERLOAD (char) { return String (a); } FORMAT_OVERLOAD (int) { return String::from_number (a); } @@ -107,11 +105,13 @@ } // ------------------------------------------------------------------------------------------------- +// // Formats the given string with the given args. // FUNCTION format_args (const String& fmtstr, const Vector& args) -> String; // ------------------------------------------------------------------------------------------------- +// // Expands the given arguments into a vector of strings. // template FUNCTION @@ -158,6 +158,7 @@ } // ------------------------------------------------------------------------------------------------- +// // This is an overload of format() where no arguments are supplied. // It returns the formatter string as-is. // @@ -169,6 +170,7 @@ } // ------------------------------------------------------------------------------------------------- +// // Prints the formatting result to the given file handle // template FUNCTION @@ -178,6 +180,7 @@ } // ------------------------------------------------------------------------------------------------- +// // Appends the formatting result to the given filename, if opening it succeeds // template @@ -193,6 +196,7 @@ } // ------------------------------------------------------------------------------------------------- +// // Prints the formatting result to the console // template