_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

SetupConsole_win32.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 Pali Rohár <[email protected]>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 
19 #ifndef SETUPCONSOLE_WIN32_H
20 #define SETUPCONSOLE_WIN32_H
21 
22 /* Returns true if standard output points to console */
23 bool IsStdoutConsole();
24 
25 /* Returns true if standard error points to console */
26 bool IsStderrConsole();
27 
28 /* Attach console from parent process and setup console standard input, output and error */
29 /* Must be called before any console I/O, ideally as first call in main() */
30 void SetupConsole();
31 
32 #endif
SetupConsole
void SetupConsole()
Definition: SetupConsole_win32.cpp:143
IsStdoutConsole
bool IsStdoutConsole()
Definition: SetupConsole_win32.cpp:49
IsStderrConsole
bool IsStderrConsole()
Definition: SetupConsole_win32.cpp:55
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.