Freeciv-3.2
|
#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__ |
Definition at line 26 of file deprecations.h.
Definition at line 37 of file deprecations.h.
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.
Definition at line 24 of file deprecations.h.
Return whether deprecation warnings are currently enabled.
Definition at line 50 of file deprecations.c.
Referenced by api_utilities_deprecation_warning(), client_start_server(), and secfile_check_unused().
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().
Enable deprecation warnings.
Definition at line 37 of file deprecations.c.
Referenced by client_main(), and main().