projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2385c80
)
Added a global with around script file execution, so as to not break the world (yet).
author
Jay Freeman (saurik)
<saurik@saurik.com>
Sat, 7 Nov 2009 22:50:03 +0000
(22:50 +0000)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Sat, 7 Nov 2009 22:50:03 +0000
(22:50 +0000)
Console.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Console.cpp
b/Console.cpp
index 719e6f0fb24c8bc01ebeddec85cde0c848bdaf4c..fc745407a591bbc51d883736b51e2bfecbc6d06a 100644
(file)
--- a/
Console.cpp
+++ b/
Console.cpp
@@
-608,8
+608,10
@@
int Main(int argc, char const * const argv[], char const * const envp[]) {
std::string code(str.str());
if (compile)
std::cout << code;
- else
+ else {
+ code = "with(Cycript.all){" + code + "}";
Run(client, code, stdout);
+ }
}
}