The header file IceUtil/Config.h defines two macros that expand to the version of the Ice run time:
ICE_STRING_VERSION is a string literal in the form
<major>.<minor>.<patch>, for example,
3.3.0. For beta releases, the version is
<major>.<minor>b, for example,
3.3b.
INT_VERSION is an integer literal in the form
AABBCC, where
AA is the major version number,
BB is the minor version number, and
CC is patch level, for example,
30300 for version 3.3.0. For beta releases, the patch level is set to 51 so, for example, for version 3.3b, the value is
30351.