Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding get_version function #10

Merged
merged 1 commit into from
Aug 30, 2018
Merged

Conversation

tathanhdinh
Copy link
Contributor

@tathanhdinh tathanhdinh commented Aug 30, 2018

Hello all,
The function ZydisGetVersion returns a combined value of (major, minor, patch, build). Since this feature of bindgen is not supported yet, we can not use existing macros, e.g. ZYDIS_VERSION_MAJOR to extract parts of the combined version. The PR allows:

let (major, minor, patch, build) = zydis::get_version();

@tathanhdinh tathanhdinh force-pushed the add_get_version branch 2 times, most recently from 5b957ba to 71063cc Compare August 30, 2018 16:25
@athre0z
Copy link
Member

athre0z commented Aug 30, 2018

Nice, thanks! Would you mind adding a short documentation block before we merge this?

@tathanhdinh
Copy link
Contributor Author

tathanhdinh commented Aug 30, 2018

Sure, I added it.

@athre0z athre0z merged commit dbb9402 into zyantific:master Aug 30, 2018
@athre0z
Copy link
Member

athre0z commented Aug 30, 2018

Thanks, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants