int main(int argc, char *argv[]) { #ifdef DEF_CONSOLE ActivateConsole(); #endif // TODO: Somehow on my computer output to stderr is not seen // So I made this redirection. If intended output is going // to be different, remove me #ifdef WIN32 *stderr = *stdout; #endif int ret = Game::getInstance().onExecute(); #ifdef WIN32 if (ret != 0) getchar(); // pause to see the output #endif return ret; }
//----------------------------------------------------------------------------------- void Console::ToggleConsole() { m_isActive ? DeactivateConsole() : ActivateConsole(); }