]> git.saurik.com Git - cycript.git/blobdiff - Execute.cpp
Forgot earlier yy modification: CYTypeArrayOf type.
[cycript.git] / Execute.cpp
index 4821319ac37693296cfb797be1d8e702e935191f..dd258265db86cd6cbbb74ae69b9bad7cd77f4f09 100644 (file)
@@ -1552,6 +1552,9 @@ extern "C" void CYSetupContext(JSGlobalContextRef context) {
     //CYSetProperty(context, System, CYJSString("global"), global);
     CYSetProperty(context, System, CYJSString("print"), &System_print);
 
+    if (CYBridgeEntry *entry = CYBridgeHash("1dlerror", 8))
+        entry->cache_ = new cy::Functor(entry->value_, reinterpret_cast<void (*)()>(&dlerror));
+
     if (hooks_ != NULL && hooks_->SetupContext != NULL)
         (*hooks_->SetupContext)(context);