From 7c53496c448c3dd5fdae5ae691172583b09e6a20 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 7 Apr 2025 11:02:02 +0200 Subject: [PATCH] verify: Enhance a comment. * lib/verify.h (_GL_COUNTER): Reference portability study regarding __COUNTER__. --- ChangeLog | 6 ++++++ lib/verify.h | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f582124be..13a0f3b2ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-07 Bruno Haible + + verify: Enhance a comment. + * lib/verify.h (_GL_COUNTER): Reference portability study regarding + __COUNTER__. + 2025-04-07 Bruno Haible stdioext: Update comments regarding Haiku. diff --git a/lib/verify.h b/lib/verify.h index 96fde0b9c8..3b01d7c2fb 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -157,9 +157,10 @@ #define _GL_CONCAT0(x, y) x##y /* _GL_COUNTER is an integer, preferably one that changes each time we - use it. Use __COUNTER__ if it works, falling back on __LINE__ - otherwise. __LINE__ isn't perfect, but it's better than a - constant. */ + use it. Use __COUNTER__ if it works (it does so with most compilers, + see ), + falling back on __LINE__ otherwise. __LINE__ isn't perfect, but it's + better than a constant. */ #if defined __COUNTER__ && __COUNTER__ != __COUNTER__ # define _GL_COUNTER __COUNTER__ #else -- 2.39.5