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

Function function_get_named_variable

src/engine/function.c:397–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static LIST * function_get_named_variable( JAM_FUNCTION * function,
398 FRAME * frame, OBJECT * name )
399{
400 int const idx = get_argument_index( object_str( name ) );
401 return idx == -1
402 ? list_copy( var_get( frame->module, name ) )
403 : list_copy( lol_get( frame->args, idx ) );
404}
405
406static void function_set_named_variable( JAM_FUNCTION * function, FRAME * frame,
407 OBJECT * name, LIST * value)

Callers 1

function_runFunction · 0.85

Calls 5

get_argument_indexFunction · 0.85
object_strFunction · 0.85
list_copyFunction · 0.85
var_getFunction · 0.85
lol_getFunction · 0.85

Tested by

no test coverage detected