2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-28 20:47:39 +00:00
tdlib-purple/format.h

18 lines
417 B
C
Raw Normal View History

#ifndef _FORMAT_H
#define _FORMAT_H
#include <string>
std::string formatMessage(const char *fmt, std::initializer_list<std::string> args);
std::string formatMessage(const char *fmt, const std::string &s);
template<typename T>
std::string formatMessage(const char *fmt, T arg)
{
return formatMessage(fmt, {std::to_string(arg)});
}
static inline char *_(const char *s) { return const_cast<char *>(s); }
#endif