Bump version and add patch field to uc_version

This commit is contained in:
lazymio 2021-11-25 14:29:04 +01:00
parent 558fb9c155
commit a3d842c485
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 4 additions and 1 deletions

View File

@ -70,11 +70,13 @@ typedef size_t uc_hook;
// Unicorn API version
#define UC_API_MAJOR 2
#define UC_API_MINOR 0
#define UC_API_PATCH 0
#define UC_API_EXTRA 4
// Unicorn package version
#define UC_VERSION_MAJOR UC_API_MAJOR
#define UC_VERSION_MINOR UC_API_MINOR
#define UC_VERSION_PATCH UC_API_PATCH
#define UC_VERSION_EXTRA UC_API_EXTRA
/*

3
uc.c
View File

@ -35,7 +35,8 @@ unsigned int uc_version(unsigned int *major, unsigned int *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