MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / GetDefList

Method GetDefList

neo/d3xp/script/Script_Program.cpp:1204–1214  ·  view source on GitHub ↗

============ idProgram::GetDefList ============ */

Source from the content-addressed store, hash-verified

1202============
1203*/
1204idVarDef *idProgram::GetDefList( const char *name ) const {
1205 int i, hash;
1206
1207 hash = varDefNameHash.GenerateKey( name, true );
1208 for ( i = varDefNameHash.First( hash ); i != -1; i = varDefNameHash.Next( i ) ) {
1209 if ( idStr::Cmp( varDefNames[i]->Name(), name ) == 0 ) {
1210 return varDefNames[i]->GetDefs();
1211 }
1212 }
1213 return NULL;
1214}
1215
1216/*
1217============

Callers 1

FindImmediateMethod · 0.45

Calls 5

GenerateKeyMethod · 0.80
FirstMethod · 0.80
NextMethod · 0.45
NameMethod · 0.45
GetDefsMethod · 0.45

Tested by

no test coverage detected