aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/expressions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/expressions.h')
-rw-r--r--src/expressions.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/expressions.h b/src/expressions.h
index e4b8908..5c2aa7e 100644
--- a/src/expressions.h
+++ b/src/expressions.h
@@ -170,6 +170,18 @@ public:
tecoInt push(tecoInt number);
+ /**
+ * Push characters of a C-string.
+ * Could be overloaded on push(tecoInt)
+ * but this confuses GCC.
+ */
+ inline void
+ push_str(const gchar *str)
+ {
+ while (*str)
+ push(*str++);
+ }
+
inline tecoInt
peek_num(int index = 1)
{