X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/8fab8594db1ad0dd8d0cfe1270993d5aa49215f5..8493347dd9711848398e2d667080110a376be96d:/Console.cpp?ds=sidebyside diff --git a/Console.cpp b/Console.cpp index ec849fe..c2c46f9 100644 --- a/Console.cpp +++ b/Console.cpp @@ -499,6 +499,12 @@ static void Console(CYOptions &options) { *out_ << "debug == " << (debug ? "true" : "false") << std::endl; } 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;