apiaryio / drafter

API Blueprint Parser (C++)
https://apiblueprint.org/
MIT License
301 stars 54 forks source link

Include Drafter version in ABI #758

Closed kylef closed 4 years ago

kylef commented 4 years ago

Currently there isn't a public API method to get the version of Drafter, we should have one for runtime checks. I'd like to make use of the version in Draughtsman the Python binding (https://github.com/kylef/draughtsman/).

kylef commented 4 years ago

@klokane suggested elsehwere (https://github.com/apiaryio/drafter/pull/762#pullrequestreview-324330045) we can bring the version number into CMake too.

kylef commented 4 years ago

Turns out I missed this one: https://github.com/apiaryio/drafter/blob/master/src/drafter.h#L113-L116