Make stopConsole() publicy available

This commit is contained in:
Martchus 2017-03-22 02:33:31 +01:00
parent 469e16e673
commit ab50f4e243
1 changed files with 4 additions and 0 deletions

View File

@ -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