Could we create a namespace around constants in the header file?
Thanks, great code generator! The only thing is that I would prefer to have a c++ namespace isolating all the constants for a register map and "static const" values instead of defines.
2
votes
Alex Ivanov
shared this idea
-
Giovanni Cerretani commented
The C++ header implementation is great. Just a note: you should remove the semicolon at the end of the namespace, as is not required by the standard, and generates a warning is compiled with pedantic flags in most compilers:
"warning: extra ';' [-Wpedantic]".