Browse Source

Make stopConsole() publicy available

fix/windows/stop_console
Martchus 5 years ago
parent
commit
ab50f4e243
  1. 4
      application/commandlineutils.h

4
application/commandlineutils.h

@ -26,15 +26,19 @@ bool CPP_UTILITIES_EXPORT confirmPrompt(const char *message, Response defaultRes
#ifdef PLATFORM_WINDOWS
void CPP_UTILITIES_EXPORT startConsole();
void CPP_UTILITIES_EXPORT stopConsole();
std::pair<std::vector<std::unique_ptr<char[]> >, std::vector<char *> > CPP_UTILITIES_EXPORT convertArgsToUtf8();
# define CMD_UTILS_START_CONSOLE \
::ApplicationUtilities::startConsole();
# define CMD_UTILS_STOP_CONSOLE \
::ApplicationUtilities::stopConsole();
# define CMD_UTILS_CONVERT_ARGS_TO_UTF8 \
auto utf8Args = ::ApplicationUtilities::convertArgsToUtf8(); \
argv = utf8Args.second.data(); \
argc = static_cast<int>(utf8Args.second.size());
#else
# define CMD_UTILS_START_CONSOLE
# define CMD_UTILS_STOP_CONSOLE
# define CMD_UTILS_CONVERT_ARGS_TO_UTF8
#endif

Loading…
Cancel
Save