MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / create

Method create

include/hx/ObjcHelpers.h:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111{
112 typedef Ret (^t)(Arg0 a0, Arg1 a1);
113 inline static t create(Dynamic func)
114 {
115 NSHaxeWrapperClass *wrapper = [[NSHaxeWrapperClass alloc] init:func.mPtr];
116 t wrap = ^(Arg0 a0, Arg1 a1) {
117 return (Ret) wrapper->haxeObject->__Run(Array_obj<Dynamic>::__new(2)->init(0, a0)->init(1, a1));
118 } ;
119 }
120};
121
122

Callers

nothing calls this directly

Calls 3

__newFunction · 0.85
__RunMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected