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

Function builtin_export

src/engine/builtins.cpp:1276–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274 */
1275
1276LIST * builtin_export( FRAME * frame, int flags )
1277{
1278 LIST * const module_list = lol_get( frame->args, 0 );
1279 LIST * const rules = lol_get( frame->args, 1 );
1280 module_t * const m = bindmodule( list_empty( module_list ) ? 0 : list_front(
1281 module_list ) );
1282
1283 LISTITER iter = list_begin( rules );
1284 LISTITER const end = list_end( rules );
1285 for ( ; iter != end; iter = list_next( iter ) )
1286 {
1287 RULE * r = nullptr;
1288 if ( !m->rules || !( r = (RULE *)hash_find( m->rules, list_item( iter )
1289 ) ) )
1290 {
1291 unknown_rule( frame, "EXPORT", m, list_item( iter ) );
1292 }
1293 r->exported = 1;
1294 }
1295 return L0;
1296}
1297
1298
1299/*

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