diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-08 19:49:40 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-08 19:56:11 +0300 |
commit | 3047ed6100a56a529f26e43ada0a3fc3c3815c3e (patch) | |
tree | 9648d5a74bae9cbd90670a8bfa0af47189e4536f /src/exporter.cpp | |
parent | c6419eed96f2832b1de2b94d711552efaa9b172d (diff) | |
download | texo-3047ed6100a56a529f26e43ada0a3fc3c3815c3e.tar texo-3047ed6100a56a529f26e43ada0a3fc3c3815c3e.tar.xz texo-3047ed6100a56a529f26e43ada0a3fc3c3815c3e.zip |
[texo] Full rewrite of inner representation.
Diffstat (limited to 'src/exporter.cpp')
-rw-r--r-- | src/exporter.cpp | 11 |
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; } |