summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-27 01:00:05 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-27 01:00:05 +0300
commit036e325e8a8be79a364004128eb2e9a936c0b393 (patch)
tree368bd552fce985b9c3257a9804c782485cc742a4 /src/emap/script_buildins.c
parent9421aeddd73397479def88d6776f01ee16cba7b8 (diff)
downloadevol-hercules-036e325e8a8be79a364004128eb2e9a936c0b393.tar.gz
evol-hercules-036e325e8a8be79a364004128eb2e9a936c0b393.tar.bz2
evol-hercules-036e325e8a8be79a364004128eb2e9a936c0b393.tar.xz
evol-hercules-036e325e8a8be79a364004128eb2e9a936c0b393.zip
Add script function for check is hash table exists.
New script function: htexists.
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 520f16f..6359ff6 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -1965,6 +1965,12 @@ BUILDIN(htSize)
return true;
}
+BUILDIN(htExists)
+{
+ int64 id = script_getnum(st, 2);
+ script_pushint(st, htreg->hashtable_exists(id));
+}
+
BUILDIN(htIterator)
{
int64 id = script_getnum(st, 2);