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

Function __hxcpp_get_kind

src/hx/CFFI.cpp:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175String __hxcpp_get_kind(Dynamic inObject)
176{
177 int type = inObject->__GetType();
178 if (type<vtAbstractBase)
179 return null();
180 if (type==(int)(size_t)k_cpp_pointer)
181 return HX_CSTRING("cpp.Pointer");
182 ReverseKindMap::const_iterator it = sgReverseKindMap.find(type);
183 if (it==sgReverseKindMap.end())
184 return null();
185 return String::create(it->second.c_str(), it->second.size());
186}
187
188
189//#define THROWS throw(Dynamic)

Callers 3

Abstract_objClass · 0.85
__FieldMethod · 0.85
fromHandleMethod · 0.85

Calls 5

findMethod · 0.80
c_strMethod · 0.80
nullClass · 0.50
__GetTypeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected