X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/51b6165e0dd24e4d40ff80e504922f705ddd7b62..3fc53550b37bd61d5e4fde77f71c71976b105041:/Console.cpp?ds=sidebyside diff --git a/Console.cpp b/Console.cpp index f7c6a0a..c2c46f9 100644 --- a/Console.cpp +++ b/Console.cpp @@ -500,7 +500,11 @@ static void Console(CYOptions &options) { } else if (data == "destroy") { CYDestroyContext(); } else if (data == "gc") { + *out_ << "collecting... " << std::flush; CYGarbageCollect(CYGetJSContext()); + *out_ << "done." << std::endl; + } else if (data == "exit") { + return; } else if (data == "expand") { expand = !expand; *out_ << "expand == " << (expand ? "true" : "false") << std::endl;