From 8a23fb2e56720c164909c9e1dc9e3db9a1b377e5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 14 Sep 2012 07:11:24 -0700 Subject: [PATCH] Export CYMakeType variants so Objective-C can call. --- Execute.cpp | 4 ++-- Internal.hpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Execute.cpp b/Execute.cpp index 0bb732c..00e73df 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -947,12 +947,12 @@ static JSValueRef Functor_callAsFunction(JSContextRef context, JSObjectRef objec return CYCallFunction(pool, context, 0, NULL, count, arguments, false, exception, &internal->signature_, &internal->cif_, internal->GetValue()); } -static JSObjectRef CYMakeType(JSContextRef context, const char *type) { +JSObjectRef CYMakeType(JSContextRef context, const char *type) { Type_privateData *internal(new Type_privateData(type)); return JSObjectMake(context, Type_privateData::Class_, internal); } -static JSObjectRef CYMakeType(JSContextRef context, sig::Type *type) { +JSObjectRef CYMakeType(JSContextRef context, sig::Type *type) { Type_privateData *internal(new Type_privateData(type)); return JSObjectMake(context, Type_privateData::Class_, internal); } diff --git a/Internal.hpp b/Internal.hpp index 89059cd..c87c0ab 100644 --- a/Internal.hpp +++ b/Internal.hpp @@ -35,6 +35,9 @@ 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); + struct Type_privateData : CYData { -- 2.49.0