In C++ you should avoid the use of #defines like this because they pollute the namespace.
Instead, make them 'static const' members of a class, or make them 'const int' variables inside a namespace (although the latter is not supported by all C++ compilers).
best regards,
Davin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
// Symbol binding
#define STB_LOCAL 0
#define STB_GLOBAL 1
#define STB_WEAK 2
#define STB_LOPROC 13
#define STB_HIPROC 15
// Symbol types
#define STT_NOTYPE 0
#define STT_OBJECT 1
#define STT_FUNC 2
#define STT_SECTION 3
#define STT_FILE 4
#define STT_LOPROC 13
#define STT_HIPROC 15
Done.
I have added this defines into ELFTypes.h.
In C++ you should avoid the use of #defines like this because they pollute the namespace.
Instead, make them 'static const' members of a class, or make them 'const int' variables inside a namespace (although the latter is not supported by all C++ compilers).
best regards,
Davin.