Loading...
Searching...
No Matches
Go to the documentation of this file.
13#ifndef FC__SANITYCHECK_H
14#define FC__SANITYCHECK_H
18#if ((IS_BETA_VERSION || IS_DEVEL_VERSION) && !defined(FREECIV_NDEBUG)) \
19 || defined(FREECIV_DEBUG)
20# define SANITY_CHECKING
25# define sanity_check_city(x) \
26 real_sanity_check_city(x, __FILE__,__FUNCTION__, __FC_LINE__)
27void real_sanity_check_city(
struct city *pcity,
const char *file,
28 const char *function,
int line);
30# define sanity_check_tile(x) \
31 real_sanity_check_tile(x, __FILE__,__FUNCTION__, __FC_LINE__)
32void real_sanity_check_tile(
struct tile *ptile,
const char *file,
33 const char *function,
int line);
35# define sanity_check() \
36 real_sanity_check(__FILE__, __FUNCTION__, __FC_LINE__)
37void real_sanity_check(
const char *file,
const char *function,
int line);
41# define sanity_check_city(x) (void)0
42# define sanity_check_tile(x) (void)0
43# define sanity_check() (void)0