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

Function builtin_export

v2/engine/builtins.c:1211–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209 */
1210
1211LIST * builtin_export( FRAME * frame, int flags )
1212{
1213 LIST * const module_list = lol_get( frame->args, 0 );
1214 LIST * const rules = lol_get( frame->args, 1 );
1215 module_t * const m = bindmodule( list_empty( module_list ) ? 0 : list_front(
1216 module_list ) );
1217
1218 LISTITER iter = list_begin( rules );
1219 LISTITER const end = list_end( rules );
1220 for ( ; iter != end; iter = list_next( iter ) )
1221 {
1222 RULE * r;
1223 if ( !m->rules || !( r = (RULE *)hash_find( m->rules, list_item( iter )
1224 ) ) )
1225 unknown_rule( frame, "EXPORT", m, list_item( iter ) );
1226 r->exported = 1;
1227 }
1228 return L0;
1229}
1230
1231
1232/*

Callers

nothing calls this directly

Calls 6

lol_getFunction · 0.85
bindmoduleFunction · 0.85
list_beginFunction · 0.85
list_endFunction · 0.85
hash_findFunction · 0.85
unknown_ruleFunction · 0.85

Tested by

no test coverage detected