diff options
author | Hans Nilsson <[email protected]> | 2019-04-05 12:43:16 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-04-05 12:43:16 +0200 |
commit | 9acc1eb1c76050ba76732e3904e2030abf80376e (patch) | |
tree | 294bda157a0c30d5655c1cab951b7d13b5021608 /lib/crypto/c_src/common.h | |
parent | c0989dcede812c47290f1c61d39e46caa0edf547 (diff) | |
parent | 4334d5c6107d6b6380b61e9200471c28d6c63110 (diff) | |
download | otp-9acc1eb1c76050ba76732e3904e2030abf80376e.tar.gz otp-9acc1eb1c76050ba76732e3904e2030abf80376e.tar.bz2 otp-9acc1eb1c76050ba76732e3904e2030abf80376e.zip |
Merge branch 'hans/crypto/polish_new_api/OTP-15644'
* hans/crypto/polish_new_api/OTP-15644:
crypto: Fix valgrind error for api_ng.c
ssh: Use new crypto function names
crypto: Fixup lots of tests
crypto: Rename new api and rework the typing
crypto: Misc C-changes,
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)) |