From e934f8279564261e234d56b3bf5f0396d5fef447 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 8 Nov 2009 00:00:54 +0000 Subject: [PATCH] Added another with() for namespacing compatibility. --- Console.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Console.cpp b/Console.cpp index fc74540..1ba72ea 100644 --- a/Console.cpp +++ b/Console.cpp @@ -598,9 +598,11 @@ int Main(int argc, char const * const argv[], char const * const envp[]) { for (CYDriver::Errors::const_iterator i(driver.errors_.begin()); i != driver.errors_.end(); ++i) std::cerr << i->location_.begin << ": " << i->message_ << std::endl; } else if (driver.program_ != NULL) - if (client != -1) + if (client != -1) { + std::string code(start, end-start); + code = "with(Cycript.all){" + code + "}"; Run(client, start, end - start, stdout); - else { + } else { std::ostringstream str; CYOutput out(str); Setup(out, driver); -- 2.50.0