|
BDE 4.39.x Production Release
|
Provide versioning information for the bbl package group.
Provide versioning information for the bbl package group.
This component provides versioning information for the bbl package group. The BBL_VERSION macro that is supplied can be used for conditional-compilation based on bbl version information. The following usage example illustrates this basic capability.
At compile time, the version of BBL can be used to select an older or newer way to accomplish a task, to enable new functionality, or to accommodate an interface change. For example, if the name of a function changes (a rare occurrence, but potentially disruptive when it does happen), the impact on affected code can be minimized by conditionally calling the function by its old or new name using conditional compilation. In the following, the #if preprocessor directive compares BBL_VERSION (i.e., the latest BBL version, excluding the patch version) to a specified major and minor version composed using the BBL_MAKE_VERSION macro:
| #define BBL_VERSION |
Construct an integer (unique to the specified BBL_VERSION_MAJOR and BBL_VERSION_MINOR numbers) corresponding to the major and minor version numbers, respectively, of the current (latest) BBL release.
BSL_GET_VERSION_MAJOR and BSL_GET_VERSION_MINOR respectively. | #define BBL_VERSION_DEPRECATION_THRESHOLD BSLS_DEPRECATE_MAKE_VER(3, 1) |
Declare that deprecations for this UOR introduced in the specified version or earlier will be "active" by default – i.e., BSLS_DEPRECATE_IS_ACTIVE will be true (which typically enables deprecation warnings).
| #define BBL_VERSION_MAJOR 4 |
Provide the major version number of the current (latest) BBL release.
| #define BBL_VERSION_MINOR 39 |
Provide the minor version number of the current (latest) BBL release.