aboutsummaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index f1ffe70..b032bb4 100644
--- a/parser.h
+++ b/parser.h
@@ -79,6 +79,14 @@ int idoline(instance *it, const char *s);
void inew_cfunc(instance *it, const char *name, func_t func);
/**
+ * Creates a script-accessible float number.
+ * @param it the current instance
+ * @param name the name of the new variable
+ * @param f the variable's initial value
+ */
+void inew_number(instance *it, const char *name, float f);
+
+/**
* Pops a word from the instance's stack.
* @param it the current instance
* @return the popped value