You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since paths are unique, I recommend the following syntax: KLOG_PATH_TO_FILE_H
#define ...
path
KLOG_DATABASE_H
src/database.h
KLOG_WIDGETS_MAP_MAPWIDGET_H
"src/widgets/map/mapwidget.h"
This way you won't have collisions of something like DATABASE_H between different projects or even inside of the project itself.
There could be multiple database.h files...
Include guard name collisions are no fun to debug. The core cpp guidelines recommend a 'good discriminator'.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#sf8-use-include-guards-for-all-header-files
Since paths are unique, I recommend the following syntax:
KLOG_PATH_TO_FILE_H
#define ...
KLOG_DATABASE_H
src/database.h
KLOG_WIDGETS_MAP_MAPWIDGET_H
"src/widgets/map/mapwidget.h"
This way you won't have collisions of something like
DATABASE_H
between different projects or even inside of the project itself.There could be multiple
database.h
files...Let me know what you think. @ea4k
The text was updated successfully, but these errors were encountered: