$MODULE messages HEADER hpp SOURCE cc
| Form | Files | Notes |
| (default) | name.hh, name.cpp | declarations in the header, definitions in the source |
HEADER ext, SOURCE ext | name.ext | other extensions |
NOHEADER | name.cpp | the source carries the declarations too and compiles on its own; callers declare what they use |
INLINE | name.hh | every definition inline in the header — see INLINE modules |
NOSOURCE | name.hh | deprecated: declarations without definitions (a warning) |
- The name defaults to
NONAME; mstring -m name overrides the file's.
- The files go to the working folder, or to
mstring -O folder.
INLINE with NOHEADER is an error.