feat: 3.9.11.19

This commit is contained in:
ttttupup committed 2024-07-24 22:47:58 +08:00
1 parent c58293edc5
commit 1c0bdaf73d
16 files changed
+1536 -127

No files matched your search

+7
View File
@@ -7,6 +7,13 @@
namespace base {
namespace utils {
#define STRINGIFY(S) #S
#define DEFER_STRINGIFY(S) STRINGIFY(S)
#define PRAGMA_MESSAGE(MSG) _Pragma(STRINGIFY(message(MSG)))
#define FORMATTED_MESSAGE(MSG) "warning [TODO-" DEFER_STRINGIFY(__COUNTER__) "] " MSG " : " __FILE__ "(" DEFER_STRINGIFY(__LINE__) ")"
#define TODO(MSG) PRAGMA_MESSAGE(FORMATTED_MESSAGE(MSG))
std::wstring Utf8ToWstring(const std::string &str);
std::string WstringToUtf8(const std::wstring &str);