Just list of sources (mostly headers) shared in many projects
- Only header is the best. Header with tcc file is also acceptable. Adding .h + .cpp only if there is no other way.
- #pragma once is forbidden. The include guards are welcomed. The every include guard should contain namespace "__ONDRA_SHARED", followed by name of the source and many random characters
#ifndef __ONDRA_SHARED_EXAMPLE_H_9832781HHJINBO_
#define __ONDRA_SHARED_EXAMPLE_H_9832781HHJINBO_
#endif
- every identifier must be member of ondra_shared namespace.
- internal identifiers and helpers should be members of _intr or _details
- templates are welcomed
- use submodules
- if used in libraries, put it into subdirectory of the src folder
- if used in large project, put it into separate directory
- it is better to import each identifier into your namespace. Do not referer the identifier directly
- it is recomennded to define aliases in one shared file
- do not use
using namespace ondra_shared
;