+static JSValueRef Pointer_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef _this, size_t count, const JSValueRef arguments[], JSValueRef *exception) { CYTry {
+ Pointer *internal(reinterpret_cast<Pointer *>(JSObjectGetPrivate(object)));
+ if (internal->type_->type_->primitive != sig::function_P)
+ throw CYJSError(context, "cannot call a pointer to non-function");
+ JSObjectRef functor(CYCastJSObject(context, CYGetProperty(context, object, cyi_s)));
+ return CYCallAsFunction(context, functor, _this, count, arguments);
+} CYCatch(NULL) }
+