API for finding brew version | developer.brewmp.com API for finding brew version | developer.brewmp.com

Developer

API for finding brew version

Forums:

Is there any API for finding brew version at run time???

Here are some of the macros I use when working with BREW version at runtime:
// version number for BREW 3.0.0.0
#define BREW_V3 (0x03000000l)
#define BREW_V313 (0x03010300l)
// macro to determine if BREW ver >= 3.0.0.0
#define IS_BREW_V3_OR_LATER() (GETAEEVERSION(NULL,0,0) >= BREW_V3)
#define IS_BREW_V313_OR_LATER() (GETAEEVERSION(NULL,0,0) >= BREW_V313)
This example prints a hex representation of the BREW version and an ascii text string into 'str':
char ver[32];
SPRINTF(str, "BREW v%08x (%s)", GETAEEVERSION(ver, 31, GAV_LATIN1), ver);
I hope this helps.
- David

Here are some of the macros I use when working with BREW version at runtime:
// version number for BREW 3.0.0.0
#define BREW_V3 (0x03000000l)
#define BREW_V313 (0x03010300l)
// macro to determine if BREW ver >= 3.0.0.0
#define IS_BREW_V3_OR_LATER() (GETAEEVERSION(NULL,0,0) >= BREW_V3)
#define IS_BREW_V313_OR_LATER() (GETAEEVERSION(NULL,0,0) >= BREW_V313)
This example prints a hex representation of the BREW version and an ascii text string into 'str':
char ver[32];
SPRINTF(str, "BREW v%08x (%s)", GETAEEVERSION(ver, 31, GAV_LATIN1), ver);
I hope this helps.
- David