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

Method DepthOfScope

neo/game/script/Script_Program.cpp:621–634  ·  view source on GitHub ↗

============ idVarDef::DepthOfScope ============ */

Source from the content-addressed store, hash-verified

619============
620*/
621int idVarDef::DepthOfScope( const idVarDef *otherScope ) const {
622 const idVarDef *def;
623 int depth;
624
625 depth = 1;
626 for( def = otherScope; def != NULL; def = def->scope ) {
627 if ( def == scope ) {
628 return depth;
629 }
630 depth++;
631 }
632
633 return 0;
634}
635
636/*
637============

Callers 1

GetDefMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected