]> git.saurik.com Git - cycript.git/commitdiff
Add ?exit command to help people exit the console.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 21 Jan 2014 11:35:09 +0000 (03:35 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 21 Jan 2014 11:35:09 +0000 (03:35 -0800)
Console.cpp

index f7c6a0ade49aebeab228956d107efbf51c389d59..fdff81c84af6356bed437ddef1511a5e1ae6e04b 100644 (file)
@@ -501,6 +501,8 @@ static void Console(CYOptions &options) {
                     CYDestroyContext();
                 } else if (data == "gc") {
                     CYGarbageCollect(CYGetJSContext());
+                } else if (data == "exit") {
+                    return;
                 } else if (data == "expand") {
                     expand = !expand;
                     *out_ << "expand == " << (expand ? "true" : "false") << std::endl;