Closed hansihe closed 9 years ago
Pleased to have your help!
The project was made to be compatible with multiple NIF API versions, and keeping compatibility is easy. The part you need to tweak is here.
I think you'll just need to add a {2,8} clause that produces the expanded api list. The {2,7} clause must continue to work as it does now.
Along with OTP 18, the nif api version number was bumped up to 2.8. According to the version history in the file
erl_nif.h
, this new version added one new function,enif_has_pending_exception
.Adding support for this one function should be trivial, and I would absolutely be willing to submit a pull request. I am however slightly unsure how you would handle multiple different versions of the nif api in the codebase. Would you like to keep compatibility with 2.7, or would a new release remove support for this version in favor of 2.8?