Freeciv-3.3
|
#include "fc_prehdrs.h"
#include <stdarg.h>
#include "log.h"
#include "shared.h"
#include "deprecations.h"
Go to the source code of this file.
Functions | |
void | deprecation_warnings_enable (void) |
bool | are_deprecation_warnings_enabled (void) |
void | deprecation_warn_cb_set (deprecation_warn_callback new_cb) |
void | do_log_deprecation (const char *format,...) |
void | deprecation_pending (const char *format,...) |
Variables | |
static deprecation_warn_callback | depr_cb = nullptr |
static bool | depr_warns_enabled = FALSE |
static char | depr_pending [1024] = "" |
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().
Even if deprecations are not enabled yet, add the message to the pending queue (currently can contain just one message). Message will be logged if deprecations later get enabled.
Definition at line 85 of file deprecations.c.
Referenced by log_parse_level_str().
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().
Log the deprecation warning
Definition at line 66 of file deprecations.c.
Referenced by deprecation_pending(), and deprecation_warnings_enable().
|
static |
Definition at line 28 of file deprecations.c.
Referenced by deprecation_warn_cb_set(), and do_log_deprecation().
|
static |
Definition at line 32 of file deprecations.c.
Referenced by deprecation_pending(), and deprecation_warnings_enable().
Definition at line 30 of file deprecations.c.
Referenced by are_deprecation_warnings_enabled(), deprecation_pending(), and deprecation_warnings_enable().