summaryrefslogtreecommitdiff
path: root/src/exporter.cpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-11-08 19:49:40 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-11-08 19:49:40 +0300
commited7a63015c1583d5544ac18bbaccaedc95f3e5e3 (patch)
tree9648d5a74bae9cbd90670a8bfa0af47189e4536f /src/exporter.cpp
parentc6419eed96f2832b1de2b94d711552efaa9b172d (diff)
downloadtexo-ed7a63015c1583d5544ac18bbaccaedc95f3e5e3.tar
texo-ed7a63015c1583d5544ac18bbaccaedc95f3e5e3.tar.xz
texo-ed7a63015c1583d5544ac18bbaccaedc95f3e5e3.zip
[texo] Full rewrite of inner representation.
Diffstat (limited to 'src/exporter.cpp')
-rw-r--r--src/exporter.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/exporter.cpp b/src/exporter.cpp
index 3baa99e..b9a5b3f 100644
--- a/src/exporter.cpp
+++ b/src/exporter.cpp
@@ -1,10 +1,15 @@
#include "exporter.hpp"
-void TexoExporter::Put(const ScriptVariable &str)
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Texo Exporter
+ */
+bool TexoExporter::Put(const ScriptVariable &str)
{
+ bool ok = true;
const int len = str.Length();
- for (int i = 0; i < len; ++i) {
- Put(str[i]);
+ for (int i = 0; ok && i < len; ++i) {
+ ok = Put(str[i]);
}
+ return ok;
}