* Must have external linkage, because PyMODINIT_FUNC does dllexport on * Windows-like platforms. */
| 127 | * Windows-like platforms. |
| 128 | */ |
| 129 | PyMODINIT_FUNC |
| 130 | PyInit_plpy(void) |
| 131 | { |
| 132 | PyObject *m; |
| 133 | |
| 134 | m = PyModule_Create(&PLy_module); |
| 135 | if (m == NULL) |
| 136 | return NULL; |
| 137 | |
| 138 | PLy_add_exceptions(m); |
| 139 | |
| 140 | return m; |
| 141 | } |
| 142 | #endif /* PY_MAJOR_VERSION >= 3 */ |
| 143 | |
| 144 | void |
nothing calls this directly
no test coverage detected