Skip to content

Commit

Permalink
Vutils
Browse files Browse the repository at this point in the history
  • Loading branch information
vic4key committed Nov 1, 2023
1 parent 6240185 commit a7aa816
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Test/Sample.Misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,14 @@ DEF_SAMPLE(Misc)
MessageBoxA(nullptr, "This message box just keep for the program running...", "", MB_OK);

// Easy Print
// C++14 (MSVC 2015+ or MinGW 5.1+)
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || (defined(__MINGW32__) && __cplusplus >= 201402L)
{
auto pids = vu::name_to_pid(ts("explorer.exe"));
auto string = std::ep::stringify_container(pids);
std::tcout << string << std::endl;
}
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)

return vu::VU_OK;
}
7 changes: 6 additions & 1 deletion include/template/easyprint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

#pragma once

// C++14 (MSVC 2015+ or MinGW 5.1+)
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || (defined(__MINGW32__) && __cplusplus >= 201402L)

#define EASY_PRINT_WINDOWS
#include "3rdparty/EP/include/easyprint.hpp"

Expand All @@ -35,4 +38,6 @@ std::wstring stringify_container_W(const T& container)
#define stringify_container stringify_container_W
#else // _UNICODE
#define stringify_container stringify_container_A
#endif // _UNICODE
#endif // _UNICODE

#endif // C++14 (MSVC 2015+ or MinGW 5.1+)
2 changes: 1 addition & 1 deletion include/template/nameop.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ static auto in = base::make_named_operator(op_impl::in_t());

#define VU_HAS_STD_OP

#endif
#endif // C++14 (MSVC 2015+ or MinGW 5.1+)

0 comments on commit a7aa816

Please sign in to comment.