|
|
|
|
|
by kazinator
2760 days ago
|
|
The clash between two different MESSAGE_H can be rendered vanishingly unlikely by having a convention of adding some random digits. I adopted the following pattern some twenty years ago of affixing a random 32 bit number in hex: #ifndef MESSAGE_H_3DF0_9A73
#define MESSAGE_H_3DF0_9A73
#endif
|
|
I guess instead we must embed GUIDs in every file to keep track of uniqueness.
[0]: https://stackoverflow.com/a/13172784/218830
[1]: https://stackoverflow.com/a/1866547/218830