MCPcopy Create free account
hub / github.com/boostorg/build / module_get_fixed_var

Function module_get_fixed_var

src/engine/modules.cpp:418–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416
417
418int module_get_fixed_var( struct module_t * m_, OBJECT * name )
419{
420 struct fixed_variable * v;
421 struct module_t * m = m_;
422
423 if ( m->class_module )
424 m = m->class_module;
425
426 if ( !m->variable_indices )
427 return -1;
428
429 v = (struct fixed_variable *)hash_find( m->variable_indices, name );
430 return v && v->n < m_->num_fixed_variables ? v->n : -1;
431}

Callers 2

var_getFunction · 0.85
var_enterFunction · 0.85

Calls 1

hash_findFunction · 0.85

Tested by

no test coverage detected