Thread (4 messages) flat view 4 messages, 4 authors, 2021-08-30

Re: [RFC PATCH] reftable: fixup for broken __FUNCTION__ use

From: Carlo Arenas <hidden>
Date: 2021-08-27 07:01:08

On Thu, Aug 26, 2021 at 11:01 PM Ævar Arnfjörð Bjarmason
[off-list ref] wrote:
The use of the __FUNCTION__ macro is non-standard
and is also problematic because it is a "magic" variable[1] instead of
a string literal.

FWIW, __func__ has also the same problem but it is part of C99; I
still like Junio's solution
better than my own that was using those.

[1] https://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help