]> git.saurik.com Git - cycript.git/blobdiff - Library.mm
Added a CYOutput object between std::ostream and the actual mechanism.
[cycript.git] / Library.mm
index b550bf5a290c7d39600b49a4ca3872c46d6bebe8..1b4a19820ed6fcda6ed2ba39a157242a3d0d6d16 100644 (file)
@@ -3450,7 +3450,8 @@ struct CYClient :
                 size = _not(size_t);
             } else {
                 std::ostringstream str;
-                driver.source_->Show(str);
+                CYOutput out(str);
+                driver.source_->Show(out);
                 std::string code(str.str());
                 CYExecute_ execute = {pool, code.c_str()};
                 [client performSelectorOnMainThread:@selector(execute:) withObject:[NSValue valueWithPointer:&execute] waitUntilDone:YES];