]> git.saurik.com Git - cycript.git/blobdiff - Library.cpp
Drop support for ObjC @implementation expressions.
[cycript.git] / Library.cpp
index 5c5c97d16f35a0149bcc663b38a6f02dd7660ec7..9ed238dc8892976b5387812977027076031770ab 100644 (file)
@@ -219,7 +219,7 @@ double CYCastDouble(const char *value) {
 
 CYUTF8String CYPoolCode(CYPool &pool, std::istream &stream) {
     CYLocalPool local;
-    CYDriver driver(stream);
+    CYDriver driver(local, stream);
 
     cy::parser parser(driver);
     _assert(parser.parse() == 0);
@@ -227,11 +227,11 @@ CYUTF8String CYPoolCode(CYPool &pool, std::istream &stream) {
 
     CYOptions options;
     CYContext context(options);
-    driver.program_->Replace(context);
+    driver.script_->Replace(context);
 
     std::stringbuf str;
     CYOutput out(str, options);
-    out << *driver.program_;
+    out << *driver.script_;
     return $pool.strdup(str.str().c_str());
 }
 
@@ -240,7 +240,7 @@ CYPool &CYGetGlobalPool() {
     return pool;
 }
 
-void CYThrow(const char *format, ...) {
+_visible void CYThrow(const char *format, ...) {
     va_list args;
     va_start(args, format);
     throw CYPoolError(format, args);