4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
10 /** @file console_func.h Console functions used outside of the console code. */
12 #ifndef CONSOLE_FUNC_H
13 #define CONSOLE_FUNC_H
15 #include "console_type.h"
18 extern IConsoleModes _iconsole_mode
;
20 /* console functions */
26 void IConsolePrint(TextColour colour_code
, const char *string
);
27 void CDECL
IConsolePrintF(TextColour colour_code
, const char *format
, ...) WARN_FORMAT(2, 3);
28 void IConsoleDebug(const char *dbg
, const char *string
);
29 void IConsoleWarning(const char *string
);
30 void IConsoleError(const char *string
);
33 void IConsoleCmdExec(const char *cmdstr
);
35 bool IsValidConsoleColour(TextColour c
);
37 #endif /* CONSOLE_FUNC_H */