4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-13 18:17:38 -04:00

C Korlib code de-duplication

Moves all PyHSPlasma struct definitions into a private header file.
Also adds move constructor and assignment support to PyObjectRef.
This commit is contained in:
2019-01-14 20:50:24 -05:00
parent a3ed2f0178
commit ce6cd0811e
10 changed files with 63 additions and 47 deletions

View File

@ -21,8 +21,6 @@
// This konstant is compared against that in the Python module to prevent sneaky errors...
#define KORLIB_API_VERSION 1
extern "C" {
static PyMethodDef korlib_Methods[] = {
{ _pycs("create_bump_LUT"), (PyCFunction)create_bump_LUT, METH_VARARGS, NULL },
{ _pycs("inspect_vorbisfile"), (PyCFunction)inspect_vorbisfile, METH_VARARGS, NULL },
@ -43,6 +41,8 @@ static PyModuleDef korlib_Module = {
NULL, /* m_free */
};
extern "C" {
PyMODINIT_FUNC PyInit__korlib() {
PyObject* module = PyModule_Create(&korlib_Module);