4 * Templates of formatting-related internal functions.
7 #include <libsex/Exception.hxx> // Exception::LENGTH
11 const char* const file,
15 // Temporary string should be initialized
16 // with 0 to not forget a trailing 0.
17 char buf[Exception::LENGTH + 1] = { 0 };
22 // Fill buf with formatted T::TEMPLATE message.
23 vformat(buf, Exception::LENGTH + 1,
33 const Exception& previous,
34 const char* const file,
38 char buf[Exception::LENGTH + 1] = { 0 };
42 vformat(buf, Exception::LENGTH + 1,
47 return T(buf, previous);