Commit d6b21ab5 authored by Matthias Braun's avatar Matthias Braun
Browse files

Add a function to return the libfirm micro version number

parent a37a0e59
......@@ -35,6 +35,8 @@ FIRM_API void ir_finish(void);
FIRM_API unsigned ir_get_version_major(void);
/** returns libFirm minor version number */
FIRM_API unsigned ir_get_version_minor(void);
/** returns libFirm micro version number */
FIRM_API unsigned ir_get_version_micro(void);
/** returns string describing libFirm revision */
FIRM_API const char *ir_get_version_revision(void);
/** returns string describing libFirm build */
......
......@@ -102,6 +102,11 @@ unsigned ir_get_version_minor(void)
return libfirm_VERSION_MINOR;
}
unsigned ir_get_version_micro(void)
{
return libfirm_VERSION_MICRO;
}
const char *ir_get_version_revision(void)
{
#ifdef libfirm_VERSION_REVISION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment