diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-27 01:00:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-27 01:00:05 +0300 |
commit | 036e325e8a8be79a364004128eb2e9a936c0b393 (patch) | |
tree | 368bd552fce985b9c3257a9804c782485cc742a4 /src/emap/script_buildins.c | |
parent | 9421aeddd73397479def88d6776f01ee16cba7b8 (diff) | |
download | evol-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.c | 6 |
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); |