[erlang-questions] nif: how to check if a resource is given as an arg

Benoit Chesneau <>
Sat Sep 23 21:52:20 CEST 2017

Is there any better method than first trying enif_get_resource to check if a resourcce is given as an argument? What would be the impact of doing it? Should I use an explicit function instead of trying to match it?

- benoit

More information about the erlang-questions mailing list