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

Function function_compile_actions

v2/engine/function.c:2873–2891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2871}
2872
2873FUNCTION * function_compile_actions( char const * actions, OBJECT * file,
2874 int line )
2875{
2876 compiler c[ 1 ];
2877 JAM_FUNCTION * result;
2878 VAR_PARSE_ACTIONS * parse;
2879 current_file = object_str( file );
2880 current_line = line;
2881 parse = parse_actions( actions );
2882 compiler_init( c );
2883 var_parse_actions_compile( parse, c );
2884 var_parse_actions_free( parse );
2885 compile_emit( c, INSTR_RETURN, 0 );
2886 result = compile_to_function( c );
2887 compiler_free( c );
2888 result->file = object_copy( file );
2889 result->line = line;
2890 return (FUNCTION *)result;
2891}
2892
2893static void argument_list_print( struct arg_list * args, int num_args );
2894

Callers 2

bjam_define_actionFunction · 0.85
compile_emit_actionsFunction · 0.85

Calls 9

object_strFunction · 0.85
parse_actionsFunction · 0.85
compiler_initFunction · 0.85
var_parse_actions_freeFunction · 0.85
compile_emitFunction · 0.85
compile_to_functionFunction · 0.85
compiler_freeFunction · 0.85
object_copyFunction · 0.85

Tested by

no test coverage detected