summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-18 19:41:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-18 19:41:33 +0300
commite477186c0da2f88d39323de390b75ffa08cbf10c (patch)
tree5fd052cae997956e8fecbe1438d19794f5440291 /src/emap/init.c
parent6115c65dbe02e495f67bf7a8b0cb48725a06c1f3 (diff)
downloadevol-hercules-e477186c0da2f88d39323de390b75ffa08cbf10c.tar.gz
evol-hercules-e477186c0da2f88d39323de390b75ffa08cbf10c.tar.bz2
evol-hercules-e477186c0da2f88d39323de390b75ffa08cbf10c.tar.xz
evol-hercules-e477186c0da2f88d39323de390b75ffa08cbf10c.zip
Add script function for check is parameter string or not.
New script function: isstr Example: isstr(10) - will return 0 isstr("test") - will return 1
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 7313d74..73ea165 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -119,6 +119,7 @@ HPExport void plugin_init (void)
addScriptCommand("failedrefindex", "i", failedRefIndex);
addScriptCommand("downrefindex", "ii", downRefIndex);
addScriptCommand("successrefindex", "ii", successRefIndex);
+ addScriptCommand("isstr", "v", isStr);
do_init_langs();