| 173 | } |
| 174 | |
| 175 | String __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) |
no test coverage detected