MACRO
OMNI_NO_EXTERN_CONSTS - If defined, Omni constants will not have external linkage.
SYNOPSIS top
If this macro is defined, the constants within the library will not be extern'd and instead will exist as const values in the headers to be included.
If this macro is defined, the constants within the library will not be extern'd and instead will exist as const values in the headers to be included.
DESCRIPTION top
The constant string values in the library are marked
The constant string values in the library are marked
extern as their default linkage. To change this behaviour to have all string constants be marked as static instead of extern you can define this macro option, there's no additional files to exclude as this flag disables portions of the code that pertain to the extern values.
CONSIDERATIONS top
Know that you are changing the linkage from static to extern with regards to the constant values in the library.
Know that you are changing the linkage from static to extern with regards to the constant values in the library.
NOTES top
The extern'd values reside in library.cpp (which is always built with the library, but if the macro is enabled, the extern portions are not compiled in).
The extern'd values reside in library.cpp (which is always built with the library, but if the macro is enabled, the extern portions are not compiled in).