2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
8 /** @file console_func.h Console functions used outside of the console code. */
10 #ifndef CONSOLE_FUNC_H
11 #define CONSOLE_FUNC_H
13 #include "console_type.h"
16 extern IConsoleModes _iconsole_mode
;
18 /* console functions */
24 void IConsolePrint(TextColour colour_code
, const char *string
);
25 void CDECL
IConsolePrintF(TextColour colour_code
, const char *format
, ...) WARN_FORMAT(2, 3);
26 void IConsoleDebug(const char *dbg
, const char *string
);
27 void IConsoleWarning(const char *string
);
28 void IConsoleError(const char *string
);
31 void IConsoleCmdExec(const char *cmdstr
, const uint recurse_count
= 0);
33 bool IsValidConsoleColour(TextColour c
);
35 #endif /* CONSOLE_FUNC_H */