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. */
| 531 | dll-exported ``extern "Python"`` function. This function returns |
| 532 | -1 if initialization failed, 0 if all is OK. */ |
| 533 | _CFFI_UNUSED_FN |
| 534 | static 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 |
nothing calls this directly
no test coverage detected