From: Jay Freeman (saurik) Date: Sun, 8 Nov 2009 00:00:54 +0000 (+0000) Subject: Added another with() for namespacing compatibility. X-Git-Tag: v0.9.432~176 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/e934f8279564261e234d56b3bf5f0396d5fef447 Added another with() for namespacing compatibility. --- 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);