sources/format.h

changeset 66
bd28a5730fd0
parent 60
268721e6be20
child 69
eb4c25284a19
equal deleted inserted replaced
65:8f47c682e248 66:bd28a5730fd0
38 38
39 // ------------------------------------------------------------------------------------------------- 39 // -------------------------------------------------------------------------------------------------
40 // 40 //
41 FORMAT_OVERLOAD (String) { return a; } 41 FORMAT_OVERLOAD (String) { return a; }
42 FORMAT_OVERLOAD (char) { return String (a); } 42 FORMAT_OVERLOAD (char) { return String (a); }
43 FORMAT_OVERLOAD (short int) { return String::from_number (a); }
43 FORMAT_OVERLOAD (int) { return String::from_number (a); } 44 FORMAT_OVERLOAD (int) { return String::from_number (a); }
44 FORMAT_OVERLOAD (long int) { return String::from_number (a); } 45 FORMAT_OVERLOAD (long int) { return String::from_number (a); }
45 FORMAT_OVERLOAD (double) { return String::from_number (a); } 46 FORMAT_OVERLOAD (double) { return String::from_number (a); }
46 FORMAT_OVERLOAD (size_t) { return String::from_number (a); } 47 FORMAT_OVERLOAD (unsigned short int) { return String::from_number (a); }
48 FORMAT_OVERLOAD (unsigned int) { return String::from_number (a); }
49 FORMAT_OVERLOAD (unsigned long int) { return String::from_number (a); }
47 FORMAT_OVERLOAD (const char*) { return a; } 50 FORMAT_OVERLOAD (const char*) { return a; }
48 FORMAT_OVERLOAD (std::nullptr_t) { (void) a; return "<null pointer>"; } 51 FORMAT_OVERLOAD (std::nullptr_t) { (void) a; return "<null pointer>"; }
49 FORMAT_OVERLOAD (bool) { return a ? "true" : "false"; } 52 FORMAT_OVERLOAD (bool) { return a ? "true" : "false"; }
50 53
51 FORMAT_OVERLOAD (const void*) 54 FORMAT_OVERLOAD (const void*)

mercurial