Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Is there a way to get the BREW version at runtime? I see there's ways of determining at compile time, but I'd like to do it at run time. Is the only way to call functions whose valid input parameters change depending on the version such as ISHELL_GetDeviceInfoEx?

You can use GETAEEVERSION(NULL,0,0), which returns the brew version.
For example:
(GETAEEVERSION(NULL,0,0) >= 0x03000000l) checks whether the brew version is greater than 3.x.
If you need the individual parts of the version number. then
A 32 bit number containing the version number is returned. The information is organized as follows:
Hi Byte of Hi Word: Major Version Number
Low Byte of Hi Word: Minor Version Number
Hi Byte of Lo Word: Sub-Version Number
Lo Byte of Lo Word: Build Number
HTH..

You can use GETAEEVERSION(NULL,0,0), which returns the brew version.
For example:
(GETAEEVERSION(NULL,0,0) >= 0x03000000l) checks whether the brew version is greater than 3.x.
If you need the individual parts of the version number. then
A 32 bit number containing the version number is returned. The information is organized as follows:
Hi Byte of Hi Word: Major Version Number
Low Byte of Hi Word: Minor Version Number
Hi Byte of Lo Word: Sub-Version Number
Lo Byte of Lo Word: Build Number
HTH..