| Liste des Groupes | Revenir à l c |
On 9/9/2026 5:43 AM, David Brown wrote:Yes. As Keith pointed out, using "H_NUMBER_GENERATOR_" or similar is better. Various conventions are used, and usually the risk of collisions with implementations is entirely negligible. But there is no cost in avoiding reserved prefixes, so you might as well do so.
[...]Just defining the symbol is fine - for use as a pure header guard, where the check is with "#ifndef" or "#ifdef", defining it to a value has no added value. Adding the "1" in that example was done without thinking.________
>
#ifndef __NUMBER_GENERATOR_H__
#define __NUMBER_GENERATOR_H__ 1
________
Is that __* non conformant? Does it breach the impl name prefix space?
Les messages affichés proviennent d'usenet.