add UC_VERSION_{MAJOR, MINOR, EXTRA}

This commit is contained in:
Nguyen Anh Quynh
2016-10-25 14:37:47 +08:00
parent c59e06d798
commit 7a1930a879
6 changed files with 27 additions and 1 deletions

View File

@ -67,6 +67,12 @@ typedef size_t uc_hook;
#define UC_API_MAJOR 1
#define UC_API_MINOR 0
// Unicorn package version
#define UC_VERSION_MAJOR UC_API_MAJOR
#define UC_VERSION_MINOR UC_API_MINOR
#define UC_VERSION_EXTRA 0
/*
Macro to create combined version which can be compared to
result of uc_version() API.