Skip to content

Commit 4feadda

Browse files
committed
Vutils
1 parent 5024db8 commit 4feadda

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Test/Sample.Misc.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,13 @@ DEF_SAMPLE(Misc)
169169

170170
MessageBoxA(nullptr, "This message box just keep for the program running...", "", MB_OK);
171171

172-
// Easy Print
173-
// C++14 (MSVC 2015+ or MinGW 5.1+)
174-
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || (defined(__MINGW32__) && __cplusplus >= 201402L)
172+
#ifdef VU_HAS_EASY_PRINT
175173
{
176174
auto pids = vu::name_to_pid(ts("explorer.exe"));
177175
auto string = std::ep::stringify_container(pids);
178176
std::tcout << string << std::endl;
179177
}
180-
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)
178+
#endif // VU_HAS_EASY_PRINT
181179

182180
return vu::VU_OK;
183181
}

include/template/easyprint.tpl

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || (defined(__MINGW32__) && __cplusplus >= 201402L)
1515

1616
#define EASY_PRINT_WINDOWS
17+
1718
#include "3rdparty/EP/include/easyprint.hpp"
1819

1920
#include <string>
@@ -40,4 +41,6 @@ std::wstring stringify_container_W(const T& container)
4041
#define stringify_container stringify_container_A
4142
#endif // _UNICODE
4243

44+
#define VU_HAS_EASY_PRINT
45+
4346
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)

0 commit comments

Comments
 (0)