* Module initialize function: fetch function pointers for cross-module calls. */
| 19 | * Module initialize function: fetch function pointers for cross-module calls. |
| 20 | */ |
| 21 | void |
| 22 | _PG_init(void) |
| 23 | { |
| 24 | /* Asserts verify that typedefs above match original declarations */ |
| 25 | #if PY_MAJOR_VERSION >= 3 |
| 26 | AssertVariableIsOfType(&PLyUnicode_FromStringAndSize, PLyUnicode_FromStringAndSize_t); |
| 27 | PLyUnicode_FromStringAndSize_p = (PLyUnicode_FromStringAndSize_t) |
| 28 | load_external_function("$libdir/" PLPYTHON_LIBNAME, "PLyUnicode_FromStringAndSize", |
| 29 | true, NULL); |
| 30 | #endif |
| 31 | } |
| 32 | |
| 33 | |
| 34 | /* These defines must be after the module init function */ |
nothing calls this directly
no test coverage detected