diff options
author | Sverker Eriksson <[email protected]> | 2015-04-14 15:18:33 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-04-15 19:02:13 +0200 |
commit | 80e15112a6e31e053ad0670096c23bda2fc341e4 (patch) | |
tree | 4d4b9778720962a7c13f40fc002bfa993b847e54 /erts/emulator/beam/erl_nif.c | |
parent | 9f903f6031ff40e415c8807aca19f699d0b553f1 (diff) | |
download | otp-80e15112a6e31e053ad0670096c23bda2fc341e4.tar.gz otp-80e15112a6e31e053ad0670096c23bda2fc341e4.tar.bz2 otp-80e15112a6e31e053ad0670096c23bda2fc341e4.zip |
erts: Add enif_has_pending_exception
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index 6fa8164787..0a05bdcf8b 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -747,6 +747,11 @@ Eterm enif_make_badarg(ErlNifEnv* env) BIF_ERROR(env->proc, BADARG); } +int enif_has_pending_exception(ErlNifEnv* env) +{ + return env->exception_thrown; +} + int enif_get_atom(ErlNifEnv* env, Eterm atom, char* buf, unsigned len, ErlNifCharEncoding encoding) { |