|
From: | Paul Eggert |
Subject: | Re: clang and _Noreturn |
Date: | Tue, 25 Apr 2017 00:49:36 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Bruno Haible wrote:
it's better ignore which parts of the API will be used frequently or rarely. Better think only at how easy it is to remember each item.
Even if that's the criterion, I find it easier to remember "use _GL_NORETURN for most noreturn cases, and use _GL_ATTRIBUTE_NORETURN for when you want just the noreturn attribute" than to remember "use _GL_NORETURN_FUNC for most noreturn cases, and use _GL_NORETURN_FUNCPTR for when you want just the noreturn attribute". Partly, I suspect, this is because _GL_ATTRIBUTE_NORETURN follows the naming convention that _GL_ATTRIBUTE_MALLOC etc. already use.
[Prev in Thread] | Current Thread | [Next in Thread] |