|
Freeciv-3.1
|
#include "log.h"Go to the source code of this file.
Macros | |
| #define | LOG_DEPRECATION LOG_WARN |
| #define | log_deprecation(message, ...) |
| #define | log_deprecation_alt(altlvl, message, ...) |
| #define | log_deprecation_always(message, ...) do_log_deprecation(message, ## __VA_ARGS__); |
Typedefs | |
| typedef void(* | deprecation_warn_callback) (const char *msg) |
Functions | |
| void | deprecation_warn_cb_set (deprecation_warn_callback new_cb) |
| void | deprecation_warnings_enable (void) |
| bool | are_deprecation_warnings_enabled (void) |
| void | do_log_deprecation (const char *format,...) fc__attribute((__format__(__printf__ |
| void void | deprecation_pending (const char *format,...) fc__attribute((__format__(__printf__ |
| #define LOG_DEPRECATION LOG_WARN |
Definition at line 26 of file deprecations.h.
| #define log_deprecation | ( | message, | |
| ... | |||
| ) |
Definition at line 37 of file deprecations.h.
| #define log_deprecation_alt | ( | altlvl, | |
| message, | |||
| ... | |||
| ) |
Definition at line 44 of file deprecations.h.
| #define log_deprecation_always | ( | message, | |
| ... | |||
| ) | do_log_deprecation(message, ## __VA_ARGS__); |
Definition at line 53 of file deprecations.h.
| typedef void(* deprecation_warn_callback) (const char *msg) |
Definition at line 24 of file deprecations.h.
| bool are_deprecation_warnings_enabled | ( | void | ) |
Return whether deprecation warnings are currently enabled.
Definition at line 50 of file deprecations.c.
Referenced by api_utilities_deprecation_warning(), client_start_server(), deprecated_semantic_warning(), and secfile_check_unused().
| void void deprecation_pending | ( | const char * | format, |
| ... | |||
| ) |
| void deprecation_warn_cb_set | ( | deprecation_warn_callback | new_cb | ) |
Set callback to call when deprecation warnings are issued
Definition at line 58 of file deprecations.c.
Referenced by con_log_init().
| void deprecation_warnings_enable | ( | void | ) |
Enable deprecation warnings.
Definition at line 37 of file deprecations.c.
Referenced by client_main(), and main().
| void do_log_deprecation | ( | const char * | format, |
| ... | |||
| ) |