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

Function function_builtin

src/engine/function.cpp:3120–3132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3118 int32_t * num_arguments );
3119
3120FUNCTION * function_builtin( LIST * ( * func )( FRAME * frame, int32_t flags ),
3121 int32_t flags, char const * * args )
3122{
3123 BUILTIN_FUNCTION * result = (BUILTIN_FUNCTION*)BJAM_MALLOC( sizeof( BUILTIN_FUNCTION ) );
3124 result->base.type = FUNCTION_BUILTIN;
3125 result->base.reference_count = 1;
3126 result->base.rulename = 0;
3127 result->base.formal_arguments = arg_list_compile_builtin( args,
3128 &result->base.num_formal_arguments );
3129 result->func = func;
3130 result->flags = flags;
3131 return (FUNCTION *)result;
3132}
3133
3134FUNCTION * function_compile( PARSE * parse )
3135{

Callers 3

bind_builtinFunction · 0.85
bind_builtinFunction · 0.85
declare_native_ruleFunction · 0.85

Calls 1

arg_list_compile_builtinFunction · 0.85

Tested by

no test coverage detected