summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 5c91301..1a34958 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -3616,6 +3616,21 @@ BUILDIN(apicall)
#endif
return true;
}
+
+
+/*==========================================
+ * Sends something over PyLog
+ *------------------------------------------*/
+BUILDIN(apiasync)
+{
+#ifdef PYTHON_LOGS
+ logs->pylog(script_getstr(st, 2));
+ script_pushint(st, 1);
+#else
+ script_pushint(st, 0);
+#endif
+ return true;
+}
//////////////////////////////////////////////////////////
/*
switch (bl->type) {