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

Function bind_builtin

v2/engine/builtins.c:99–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98
99RULE * bind_builtin( char const * name_, LIST * (* f)( FRAME *, int flags ),
100 int flags, char const * * args )
101{
102 FUNCTION * func;
103 RULE * result;
104 OBJECT * name = object_new( name_ );
105
106 func = function_builtin( f, flags, args );
107
108 result = new_rule_body( root_module(), name, func, 1 );
109
110 function_free( func );
111
112 object_free( name );
113
114 return result;
115}
116
117
118RULE * duplicate_rule( char const * name_, RULE * other )

Callers 1

load_builtinsFunction · 0.85

Calls 6

object_newFunction · 0.85
function_builtinFunction · 0.85
new_rule_bodyFunction · 0.85
root_moduleFunction · 0.85
function_freeFunction · 0.85
object_freeFunction · 0.85

Tested by

no test coverage detected