Bump version and add patch field to uc_version
This commit is contained in:
parent
558fb9c155
commit
a3d842c485
|
@ -70,11 +70,13 @@ typedef size_t uc_hook;
|
||||||
// Unicorn API version
|
// Unicorn API version
|
||||||
#define UC_API_MAJOR 2
|
#define UC_API_MAJOR 2
|
||||||
#define UC_API_MINOR 0
|
#define UC_API_MINOR 0
|
||||||
|
#define UC_API_PATCH 0
|
||||||
#define UC_API_EXTRA 4
|
#define UC_API_EXTRA 4
|
||||||
|
|
||||||
// Unicorn package version
|
// Unicorn package version
|
||||||
#define UC_VERSION_MAJOR UC_API_MAJOR
|
#define UC_VERSION_MAJOR UC_API_MAJOR
|
||||||
#define UC_VERSION_MINOR UC_API_MINOR
|
#define UC_VERSION_MINOR UC_API_MINOR
|
||||||
|
#define UC_VERSION_PATCH UC_API_PATCH
|
||||||
#define UC_VERSION_EXTRA UC_API_EXTRA
|
#define UC_VERSION_EXTRA UC_API_EXTRA
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
3
uc.c
3
uc.c
|
@ -35,7 +35,8 @@ unsigned int uc_version(unsigned int *major, unsigned int *minor)
|
||||||
*minor = UC_API_MINOR;
|
*minor = UC_API_MINOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (UC_API_EXTRA << 16) + (UC_API_MAJOR << 8) + UC_API_MINOR;
|
return (UC_API_EXTRA << 24) + (UC_API_PATCH << 16) + (UC_API_MAJOR << 8) +
|
||||||
|
UC_API_MINOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
UNICORN_EXPORT
|
UNICORN_EXPORT
|
||||||
|
|
Loading…
Reference in New Issue