rusterlium / erlang_nif-sys

Low level bindings to Erlang NIF API for Rust
Apache License 2.0
90 stars 19 forks source link

improve version config scheme #7

Closed goertzenator closed 8 years ago

goertzenator commented 8 years ago

After PR #6, it is now evident that the version selection scheme in gen_api.erl is going to start looking ugly before too many more NIF revisions.

Quick ideas to think more about later when I have time...

tsloughter commented 8 years ago

I was about to point out 18.2.1 fails because the NIF version is 2.9 :).

Can I send a patch that just checks Version is > 2.7 for now?

tatsuya6502 commented 8 years ago

@tsloughter Just FYI, You can take my code from PR https://github.com/goertzenator/ruster_unsafe/pull/6 for OTP 18.2.x. It does not do when X>Y but when X=:=W; X=:=Y; X=:=Z. (I followed the conversion in the current code base.)

tsloughter commented 8 years ago

Oh, I didn't notice #6 had that. I simply quickly forked and did >= {2.7}.