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

Function function_python

src/engine/function.c:4778–4791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4776}
4777
4778FUNCTION * function_python( PyObject * function, PyObject * bjam_signature )
4779{
4780 PYTHON_FUNCTION * result = BJAM_MALLOC( sizeof( PYTHON_FUNCTION ) );
4781
4782 result->base.type = FUNCTION_PYTHON;
4783 result->base.reference_count = 1;
4784 result->base.rulename = 0;
4785 result->base.formal_arguments = arg_list_compile_python( bjam_signature,
4786 &result->base.num_formal_arguments );
4787 Py_INCREF( function );
4788 result->python_function = function;
4789
4790 return (FUNCTION *)result;
4791}
4792
4793
4794static void argument_list_to_python( struct arg_list * formal, int formal_count,

Callers 2

bjam_import_ruleFunction · 0.85

Calls 1

arg_list_compile_pythonFunction · 0.85

Tested by

no test coverage detected