aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorTuncer Ayaz <[email protected]>2010-05-07 18:05:56 +0200
committerRaimo Niskanen <[email protected]>2010-05-24 14:25:11 +0200
commit08d67b91c5daf5eb5e8d974ca08bb1b634c4ae2a (patch)
tree69adfaefdb7520c7abe519ad8b4cd6406598395e /erts/doc/src
parent458dcb10f98bffd241a837cbac7c108eb485f706 (diff)
downloadotp-08d67b91c5daf5eb5e8d974ca08bb1b634c4ae2a.tar.gz
otp-08d67b91c5daf5eb5e8d974ca08bb1b634c4ae2a.tar.bz2
otp-08d67b91c5daf5eb5e8d974ca08bb1b634c4ae2a.zip
erl_nif: add enif_is_list and enif_is_tuple
Add new NIF API functions - enif_is_list - enif_is_tuple Signed-off-by: Tuncer Ayaz <[email protected]>
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/erl_nif.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index 5ec844e2ad..dda6354c61 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -597,6 +597,14 @@ typedef enum {
<fsummary>Determine if a term is a reference</fsummary>
<desc><p>Return true if <c>term</c> is a reference.</p></desc>
</func>
+ <func><name><ret>int</ret><nametext>enif_is_tuple(ErlNifEnv* env, ERL_NIF_TERM term)</nametext></name>
+ <fsummary>Determine if a term is a tuple</fsummary>
+ <desc><p>Return true if <c>term</c> is a tuple.</p></desc>
+ </func>
+ <func><name><ret>int</ret><nametext>enif_is_list(ErlNifEnv* env, ERL_NIF_TERM term)</nametext></name>
+ <fsummary>Determine if a term is a list</fsummary>
+ <desc><p>Return true if <c>term</c> is a list.</p></desc>
+ </func>
<func><name><ret>ERL_NIF_TERM</ret><nametext>enif_make_atom(ErlNifEnv* env, const char* name)</nametext></name>
<fsummary>Create an atom term</fsummary>
<desc><p>Create an atom term from the C-string <c>name</c>. Unlike other terms, atom