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

Function function_builtin

src/engine/function.c:2944–2956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2942 int * num_arguments );
2943
2944FUNCTION * function_builtin( LIST * ( * func )( FRAME * frame, int flags ),
2945 int flags, char const * * args )
2946{
2947 BUILTIN_FUNCTION * result = BJAM_MALLOC( sizeof( BUILTIN_FUNCTION ) );
2948 result->base.type = FUNCTION_BUILTIN;
2949 result->base.reference_count = 1;
2950 result->base.rulename = 0;
2951 result->base.formal_arguments = arg_list_compile_builtin( args,
2952 &result->base.num_formal_arguments );
2953 result->func = func;
2954 result->flags = flags;
2955 return (FUNCTION *)result;
2956}
2957
2958FUNCTION * function_compile( PARSE * parse )
2959{

Callers 2

bind_builtinFunction · 0.85
declare_native_ruleFunction · 0.85

Calls 1

arg_list_compile_builtinFunction · 0.85

Tested by

no test coverage detected