Closed EmilRosenquist closed 2 years ago
Hm, I see that this implementation makes __func__
only available in C++ but it seem like it's also available in C since C99 (and even earlier on compiler-specific basis): https://stackoverflow.com/questions/7008485/func-or-function-or-manual-const-char-id
I think we should just always define it and see what happens. Maybe also add a note that it's definitely available from C99 and C++11 but likely even earlier.
@boris-kolpackov sure, always defined it to 1 now :)
add func and FUNCTION
1
These two seem to be defined everywhere but I can't anything specifying where its guaranteed. The
__func__
seems to be standardised in c++11 https://stackoverflow.com/a/4384825. While FUNCTION seem to be older and I can't find any info on when or where its specified.@boris-kolpackov I think you have to decide what todo with these.