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

Function function_python

src/engine/function.cpp:5316–5329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5314}
5315
5316FUNCTION * function_python( PyObject * function, PyObject * bjam_signature )
5317{
5318 PYTHON_FUNCTION * result = (PYTHON_FUNCTION *)BJAM_MALLOC( sizeof( PYTHON_FUNCTION ) );
5319
5320 result->base.type = FUNCTION_PYTHON;
5321 result->base.reference_count = 1;
5322 result->base.rulename = 0;
5323 result->base.formal_arguments = arg_list_compile_python( bjam_signature,
5324 &result->base.num_formal_arguments );
5325 Py_INCREF( function );
5326 result->python_function = function;
5327
5328 return (FUNCTION *)result;
5329}
5330
5331
5332static void argument_list_to_python( struct arg_list * formal, int32_t formal_count,

Callers 2

bjam_import_ruleFunction · 0.85

Calls 1

arg_list_compile_pythonFunction · 0.85

Tested by

no test coverage detected