Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: (PR#6573) undefined reference to real_sanity_check_cit
Home

[Freeciv-Dev] Re: (PR#6573) undefined reference to real_sanity_check_cit

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6573) undefined reference to real_sanity_check_city
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 19 Oct 2003 18:53:45 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Patch attached.

jason

Index: server/sanitycheck.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/sanitycheck.h,v
retrieving revision 1.2
diff -u -r1.2 sanitycheck.h
--- server/sanitycheck.h        2003/10/13 01:33:31     1.2
+++ server/sanitycheck.h        2003/10/20 01:53:04
@@ -13,8 +13,12 @@
 #ifndef FC__SANITYCHECK_H
 #define FC__SANITYCHECK_H
 
-#define sanity_check_city(x) real_sanity_check_city(x, __FILE__, __LINE__)
+#ifndef NDEBUG
+#  define sanity_check_city(x) real_sanity_check_city(x, __FILE__, __LINE__)
 void real_sanity_check_city(struct city *pcity, const char *file, int line);
+#else /* NDEBUG */
+#  define sanity_check_city(x) (void)0
+#endif /* NDEBUG */
 
 void sanity_check(void);
 

[Prev in Thread] Current Thread [Next in Thread]