, .
#ifndef PROJECT_PATH_TO_FILE_HPP
, "", - taste/the/rainbow.hpp
, :
#ifndef SKITTLES_TASTE_THE_RAINBOW_HPP
, . , foo_bar.hpp
, - foo/bar.hpp
. , .
Another option is to use namespaces instead of paths:
#define PROJECT_NAMESPACE_MODULE_HPP
I also saw people adding the date and time the file was created or using UUIDs to add extra security against name conflicts.
source
share