Open martinhoracek opened 4 years ago
Definitions of the same macro in 2 separate files was an oversight, thanks for pointing that out. However, macro's cannot be "hidden" inside of namespaces, as they are preprocessor directives, and are evaluated before anything else during the compilation. Maybe redefining it as a const int
(or maybe even constexpr int
) attribute would be a more sensible decision if you want to achieve encapsulation.
There is globally defined macro DICTIONARY_SIZE. It is defined in two places. It should be hidden in the BIP39 namespace and defined only in one place.