// -*- c++ -*- #pragma once #ifndef __XOT_STRING_H__ #define __XOT_STRING_H__ #include #include namespace Xot { typedef std::string String; String stringf (const char* format, ...); String stringf (const char* format, va_list args); template String to_s (const T& val); }// Xot #define XOT_STRINGF(format, result) \ Xot::String result; \ do \ { \ if (format) \ { \ va_list args; \ va_start(args, format); \ result = Xot::stringf(format, args); \ va_end(args); \ } \ } \ while (false) #endif//EOH