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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user