[erlang-questions] NIF how to check the vm version

Steve Vinoski vinoski@REDACTED
Thu Jul 27 17:06:00 CEST 2017


On Thu, Jul 27, 2017 at 10:49 AM, Caragea Silviu <silviu.cpp@REDACTED>
wrote:

> Hello,
>
> There is any define in the nif headers to indicate what OTP version I'm
> compiling against ?
>
> i want to change one of my projects in case it;s compiled against OTP 20
> or newer to use enif_select for some features.
>

#define ERL_NIF_MAJOR_VERSION 2
#define ERL_NIF_MINOR_VERSION 12

You'll need to figure out the version at which your desired feature
appeared.

--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170727/d11838e9/attachment.htm>


More information about the erlang-questions mailing list