MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / cffi_start_python

Function cffi_start_python

pager_lib/cffi/_embedding.h:533–542  ·  view source on GitHub ↗

The cffi_start_python() function makes sure Python is initialized and our cffi module is set up. It can be called manually from the user C code. The same effect is obtained automatically from any dll-exported ``extern "Python"`` function. This function returns -1 if initialization failed, 0 if all is OK. */

Source from the content-addressed store, hash-verified

531 dll-exported ``extern "Python"`` function. This function returns
532 -1 if initialization failed, 0 if all is OK. */
533_CFFI_UNUSED_FN
534static int cffi_start_python(void)
535{
536 if (_cffi_call_python == &_cffi_start_and_call_python) {
537 if (_cffi_start_python() == NULL)
538 return -1;
539 }
540 cffi_read_barrier();
541 return 0;
542}
543
544#undef cffi_compare_and_swap
545#undef cffi_write_barrier

Callers

nothing calls this directly

Calls 1

_cffi_start_pythonFunction · 0.85

Tested by

no test coverage detected