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

Function function_get_named_variable

v2/engine/function.c:394–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394static LIST * function_get_named_variable( JAM_FUNCTION * function,
395 FRAME * frame, OBJECT * name )
396{
397 int const idx = get_argument_index( object_str( name ) );
398 return idx == -1
399 ? list_copy( var_get( frame->module, name ) )
400 : list_copy( lol_get( frame->args, idx ) );
401}
402
403static void function_set_named_variable( JAM_FUNCTION * function, FRAME * frame,
404 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