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

Method getInterfaceSlot

src/hx/cppia/CppiaModule.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183int CppiaModule::getInterfaceSlot(const std::string &inName)
184{
185 InterfaceSlots::iterator it = interfaceSlots.find(inName);
186 if (it==interfaceSlots.end())
187 {
188 int result = interfaceSlots.size()+1;
189 interfaceSlots[inName] = result;
190 return result;
191 }
192 return it->second;
193}
194
195
196int CppiaModule::findInterfaceSlot(const std::string &inName)

Callers 1

linkTypesMethod · 0.80

Calls 2

findMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected