X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f43fcb8535894f72761f717a792f91ac94364356..8493347dd9711848398e2d667080110a376be96d:/Console.cpp diff --git a/Console.cpp b/Console.cpp index dbb8baa..c2c46f9 100644 --- a/Console.cpp +++ b/Console.cpp @@ -497,6 +497,14 @@ static void Console(CYOptions &options) { } else if (data == "debug") { debug = !debug; *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;