]> granicus.if.org Git - gc/commitdiff
Define STATIC macro to static by default
authorIvan Maidanski <ivmai@mail.ru>
Mon, 27 May 2019 19:58:41 +0000 (22:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 27 May 2019 20:05:11 +0000 (23:05 +0300)
This is reduce number of internal symbols exposed outside GC.

* include/private/gcconfig.h [!STATIC] (STATIC): Define to empty only
if GC_ASSERTIONS (regardless of NO_DEBUGGING); update comment.

include/private/gcconfig.h

index ed70984d5412c1a0751ae0a1f73c3ed0615efa96..15d74d26111b3cb9bcde191d6a1cc28d23bd9479 100644 (file)
@@ -3246,8 +3246,8 @@ EXTERN_C_BEGIN
 #endif
 
 #ifndef STATIC
-# ifndef NO_DEBUGGING
-#   define STATIC /* ignore to aid profiling and possibly debugging     */
+# ifdef GC_ASSERTIONS
+#   define STATIC /* ignore to aid debugging (or profiling) */
 # else
 #   define STATIC static
 # endif