输出测试,RenderableString基本完成

This commit is contained in:
EmsiaetKadosh
2025-01-17 16:36:39 +08:00
parent 2b7f05d928
commit 1007ac469a
10 changed files with 433 additions and 16 deletions
+9 -1
View File
@@ -4,7 +4,9 @@
#pragma once
#include <functional>
#include <iostream>
#include <list>
#include <string>
#include <map>
@@ -12,6 +14,12 @@ using wchar = wchar_t;
using QWORD = unsigned long long int;
using String = std::wstring;
template<typename K, typename V, typename Cmp = std::less<K>, typename Alloc = std::allocator<std::pair<const K, V>>> using Map = std::map<K, V, Cmp, Alloc>;
template<typename T, typename Alloc = std::allocator<T>> using List = std::list<T, Alloc>;
template<typename F> using Function = std::function<F>;
#define Success() { return 0; }
#define Failed() { return 1; }
#define Error() { return -1; }
#if false
#ifdef _MSC_VER
@@ -23,8 +31,8 @@ template<typename K, typename V, typename Cmp = std::less<K>, typename Alloc = s
#endif
#endif
#if false
#define _WINSOCKAPI_ /* 防止winsock.h被引入。winsock.h和winsock2.h冲突。 */
#if false
#include <WinSock2.h>
#endif