MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getDependency

Method getDependency

Engine/source/module/moduleDefinition.cpp:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115//-----------------------------------------------------------------------------
116
117bool ModuleDefinition::getDependency( const U32 dependencyIndex, ModuleDependency& dependency ) const
118{
119 // Is dependency index out of bounds?
120 if ( dependencyIndex >= (U32)mDependencies.size() )
121 {
122 // Yes, so warn.
123 Con::warnf("Could not get module dependency '%d' as it is out of range.", dependencyIndex);
124 return false;
125 }
126
127 // Fetch module dependency.
128 dependency = mDependencies[dependencyIndex];
129
130 return true;
131}
132
133//-----------------------------------------------------------------------------
134

Calls 2

warnfFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected