summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-03-09 13:38:24 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-09 13:38:24 -0800
commit69a3b75fa638f51fc11c6f34b67531032974f7d8 (patch)
treeb1d9dce062324112b386bb576459cc4e40fc1aab /Documentation
parentMerge branch 'hn/reftable-no-empty-keys' (diff)
parentC99: remove hardcoded-out !HAVE_VARIADIC_MACROS code (diff)
downloadtgif-69a3b75fa638f51fc11c6f34b67531032974f7d8.tar.xz
Merge branch 'ab/c99-variadic-macros'
Remove the escape hatch we added when we introduced the weather balloon to use variadic macros unconditionally, to make it official that we now have a hard dependency on the feature. * ab/c99-variadic-macros: C99: remove hardcoded-out !HAVE_VARIADIC_MACROS code git-compat-util.h: clarify GCC v.s. C99-specific in comment
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/CodingGuidelines3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index c37c43186e..1a7bc4591c 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -217,6 +217,9 @@ For C programs:
. since mid 2017 with 512f41cf, we have been using designated
initializers for array (e.g. "int array[10] = { [5] = 2 }").
+ . since early 2021 with 765dc168882, we have been using variadic
+ macros, mostly for printf-like trace and debug macros.
+
These used to be forbidden, but we have not heard any breakage
report, and they are assumed to be safe.