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

Function make_jam_arguments_from_python

src/engine/builtins.c:2136–2160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2134}
2135
2136static void make_jam_arguments_from_python(FRAME* inner, PyObject *args)
2137{
2138 int i;
2139 int size;
2140
2141 /* Build up the list of arg lists. */
2142 frame_init( inner );
2143 inner->prev = 0;
2144 inner->prev_user = 0;
2145 inner->module = bindmodule( constant_python_interface );
2146
2147 size = PyTuple_Size( args );
2148 for (i = 0 ; i < size; ++i)
2149 {
2150 PyObject * a = PyTuple_GetItem( args, i );
2151 if ( PyString_Check( a ) )
2152 {
2153 lol_add( inner->args, jam_list_from_string(a) );
2154 }
2155 else if ( PySequence_Check( a ) )
2156 {
2157 lol_add( inner->args, jam_list_from_sequence(a) );
2158 }
2159 }
2160}
2161
2162
2163/*

Callers 1

bjam_callFunction · 0.85

Calls 5

frame_initFunction · 0.85
bindmoduleFunction · 0.85
lol_addFunction · 0.85
jam_list_from_stringFunction · 0.85
jam_list_from_sequenceFunction · 0.85

Tested by

no test coverage detected