diff options
author | Sverker Eriksson <[email protected]> | 2019-02-20 16:06:03 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-02-20 16:06:03 +0100 |
commit | 1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8 (patch) | |
tree | 22b78ac4084d91a1baa661e54e654dc285a3a9ed /erts/emulator/beam | |
parent | 9197f6ea9af095eebbbf42e4ceca5ef762467276 (diff) | |
download | otp-1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8.tar.gz otp-1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8.tar.bz2 otp-1937c8e3f7860ff3dfbeb6d25dd434fcd3102ba8.zip |
erts: Add enif_compare_pids
as a macro wrappper around enif_compare
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_nif_api_funcs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif_api_funcs.h b/erts/emulator/beam/erl_nif_api_funcs.h index a87f3154a9..8ab454c8dd 100644 --- a/erts/emulator/beam/erl_nif_api_funcs.h +++ b/erts/emulator/beam/erl_nif_api_funcs.h @@ -632,6 +632,7 @@ static ERL_NIF_INLINE ERL_NIF_TERM enif_make_list9(ErlNifEnv* env, #ifndef enif_make_pid # define enif_make_pid(ENV, PID) ((void)(ENV),(const ERL_NIF_TERM)((PID)->pid)) +# define enif_compare_pids(A, B) (enif_compare((A)->pid,(B)->pid)) # define enif_select_read(ENV, E, OBJ, PID, MSG, MSG_ENV) \ enif_select_x(ENV, E, ERL_NIF_SELECT_READ | ERL_NIF_SELECT_CUSTOM_MSG, \ OBJ, PID, MSG, MSG_ENV) |