MCPcopy Create free account
hub / github.com/JACoders/OpenJK / PC_AddDefineToHash

Function PC_AddDefineToHash

codemp/botlib/l_precomp.cpp:579–598  ·  view source on GitHub ↗

end of the function PC_NameHash ============================================================================ Parameter: - Returns: - Changes Globals: - ============================================================================

Source from the content-addressed store, hash-verified

577// Changes Globals: -
578//============================================================================
579void PC_AddDefineToHash(define_t *define, define_t **definehash)
580{
581 int hash;
582
583
584 if ( addGlobalDefine )
585 {
586 definehash = globaldefines;
587 define->flags |= DEFINE_GLOBAL;
588 }
589
590 hash = PC_NameHash(define->name);
591 define->hashnext = definehash[hash];
592 definehash[hash] = define;
593
594 if ( addGlobalDefine )
595 {
596 define->globalnext = define->hashnext;
597 }
598} //end of the function PC_AddDefineToHash
599//============================================================================
600//
601// Parameter: -

Callers 4

PC_AddBuiltinDefinesFunction · 0.85
PC_Directive_defineFunction · 0.85
PC_AddDefineFunction · 0.85

Calls 1

PC_NameHashFunction · 0.85

Tested by

no test coverage detected