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

Function new_rule_body

v2/engine/rules.c:586–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584 */
585
586RULE * new_rule_body( module_t * m, OBJECT * rulename, FUNCTION * procedure,
587 int exported )
588{
589 RULE * const local = define_rule( m, rulename, m );
590 local->exported = exported;
591 set_rule_body( local, procedure );
592
593 /* Mark the procedure with the global rule name, regardless of whether the
594 * rule is exported. That gives us something reasonably identifiable that we
595 * can use, e.g. in profiling output. Only do this once, since this could be
596 * called multiple times with the same procedure.
597 */
598 if ( !function_rulename( procedure ) )
599 function_set_rulename( procedure, global_rule_name( local ) );
600
601 return local;
602}
603
604
605static void set_rule_actions( RULE * rule, rule_actions * actions )

Callers 5

bind_builtinFunction · 0.85
builtin_native_ruleFunction · 0.85
bjam_import_ruleFunction · 0.85
function_set_ruleFunction · 0.85

Calls 5

define_ruleFunction · 0.85
set_rule_bodyFunction · 0.85
function_rulenameFunction · 0.85
function_set_rulenameFunction · 0.85
global_rule_nameFunction · 0.85

Tested by

no test coverage detected