diff options
author | Hans Nilsson <[email protected]> | 2019-03-27 13:58:01 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-04-05 12:41:46 +0200 |
commit | 344c3602bfdfc71670b80c9f9f9345b86e637989 (patch) | |
tree | 5c3ac950825f26a11047ecade3aa2154471dae88 /lib/crypto/c_src/common.h | |
parent | c0989dcede812c47290f1c61d39e46caa0edf547 (diff) | |
download | otp-344c3602bfdfc71670b80c9f9f9345b86e637989.tar.gz otp-344c3602bfdfc71670b80c9f9f9345b86e637989.tar.bz2 otp-344c3602bfdfc71670b80c9f9f9345b86e637989.zip |
crypto: Misc C-changes,
error fixes, better error reporting (file and line), make aead more robust and like the _ng api.
Diffstat (limited to 'lib/crypto/c_src/common.h')
-rw-r--r-- | lib/crypto/c_src/common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/crypto/c_src/common.h b/lib/crypto/c_src/common.h index 0bf7f09f4f..a7e59d5d01 100644 --- a/lib/crypto/c_src/common.h +++ b/lib/crypto/c_src/common.h @@ -38,8 +38,11 @@ /* All nif functions return a valid value or throws an exception */ #define EXCP(Env, Id, Str) enif_raise_exception((Env), \ - enif_make_tuple2((Env), \ + enif_make_tuple3((Env), \ (Id), \ + enif_make_tuple2((Env), \ + enif_make_string((Env),__FILE__,(ERL_NIF_LATIN1)), \ + enif_make_int((Env), __LINE__)), \ enif_make_string((Env),(Str),(ERL_NIF_LATIN1)) )) #define EXCP_NOTSUP(Env, Str) EXCP((Env), atom_notsup, (Str)) |