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

Function cache_maxage

v2/engine/hcache.c:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 */
107
108static int cache_maxage( void )
109{
110 int age = 100;
111 LIST * const var = var_get( root_module(), constant_HCACHEMAXAGE );
112 if ( !list_empty( var ) )
113 {
114 age = atoi( object_str( list_front( var ) ) );
115 if ( age < 0 )
116 age = 0;
117 }
118 return age;
119}
120
121
122/*

Callers 1

hcache_doneFunction · 0.85

Calls 3

var_getFunction · 0.85
root_moduleFunction · 0.85
object_strFunction · 0.85

Tested by

no test coverage detected