/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2010 Jay Freeman (saurik)
+ * Copyright (C) 2009-2012 Jay Freeman (saurik)
*/
/* GNU Lesser General Public License, Version 3 {{{ */
JSGlobalContextRef CYGetJSContext(JSContextRef context);
void Structor_(apr_pool_t *pool, sig::Type *&type);
+JSObjectRef CYMakeType(JSContextRef context, const char *type);
+JSObjectRef CYMakeType(JSContextRef context, sig::Type *type);
+
+extern JSClassRef Functor_;
+
struct Type_privateData :
CYData
{
sig::sig_ffi_cif(pool_, &sig::ObjectiveC, &signature_, &cif_);
}
- void (*GetValue())() const {
+ void (*GetValue() const)() {
return reinterpret_cast<void (*)()>(value_);
}
};
Closure_privateData *CYMakeFunctor_(JSContextRef context, JSObjectRef function, const char *type, void (*callback)(ffi_cif *, void *, void **, void *));
+void CYExecuteClosure(ffi_cif *cif, void *result, void **arguments, void *arg, JSValueRef (*adapter)(JSContextRef, size_t, JSValueRef[], JSObjectRef));
#endif/*CYCRIPT_INTERNAL_HPP*/