diff options
author | Filipe David Manana <[email protected]> | 2011-06-08 17:33:18 +0100 |
---|---|---|
committer | Filipe David Manana <[email protected]> | 2011-06-08 17:36:39 +0100 |
commit | 8db78b0c92a26e2a7766f8ece2f0ed7abb5db791 (patch) | |
tree | 6c51aec6b82b4420e5284c5aac077df32ed8e8c0 /erts/emulator/beam/erl_nif_api_funcs.h | |
parent | 3b818d5ec09cd2bb4c650776b898af9206f13c68 (diff) | |
download | otp-8db78b0c92a26e2a7766f8ece2f0ed7abb5db791.tar.gz otp-8db78b0c92a26e2a7766f8ece2f0ed7abb5db791.tar.bz2 otp-8db78b0c92a26e2a7766f8ece2f0ed7abb5db791.zip |
Add NIF function enif_is_number
This function allows for easily determining if a term represents
or not a number (integer, float, small or big).
Diffstat (limited to 'erts/emulator/beam/erl_nif_api_funcs.h')
-rw-r--r-- | erts/emulator/beam/erl_nif_api_funcs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif_api_funcs.h b/erts/emulator/beam/erl_nif_api_funcs.h index c991b61abe..43d706dc72 100644 --- a/erts/emulator/beam/erl_nif_api_funcs.h +++ b/erts/emulator/beam/erl_nif_api_funcs.h @@ -136,6 +136,7 @@ ERL_NIF_API_FUNC_DECL(ERL_NIF_TERM,enif_make_int64,(ErlNifEnv*, ErlNifSInt64)); ERL_NIF_API_FUNC_DECL(ERL_NIF_TERM,enif_make_uint64,(ErlNifEnv*, ErlNifUInt64)); #endif ERL_NIF_API_FUNC_DECL(int,enif_is_exception,(ErlNifEnv*, ERL_NIF_TERM term)); +ERL_NIF_API_FUNC_DECL(int,enif_is_number,(ErlNifEnv*, ERL_NIF_TERM term)); /* ** Add new entries here to keep compatibility on Windows!!! @@ -256,6 +257,7 @@ ERL_NIF_API_FUNC_DECL(int,enif_is_exception,(ErlNifEnv*, ERL_NIF_TERM term)); #endif # define enif_is_exception ERL_NIF_API_FUNC_MACRO(enif_is_exception) +# define enif_is_number ERL_NIF_API_FUNC_MACRO(enif_is_number) /* ** Add new entries here |