-
-
Save erszcz/9ff8a7d308ed4a56c88c to your computer and use it in GitHub Desktop.
nif_init(void)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ErlNifFunc funcs[] = | |
{ | |
{"native_add", 2, native_add} | |
}; | |
ErlNifEntry* nif_init(void) { | |
static ErlNifEntry entry = { | |
2, | |
6, | |
"er", | |
sizeof(funcs) / sizeof(*funcs), | |
funcs, | |
((void *)0), | |
((void *)0), | |
((void *)0), | |
((void *)0), | |
"beam.vanilla" | |
}; | |
; | |
return &entry; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment