Files
cpp-project-template/third_party/microprofile/distorm/python/python_module_init.c
tqcq c8b9782baa
Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 13m15s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 13m1s
sm-rpc / build (Release, host.gcc) (push) Failing after 13m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 13m35s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 13m56s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 14m22s
sm-rpc / build (Debug, host.gcc) (push) Failing after 14m49s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 15m13s
feat add microprile, remove prometheus
2025-08-25 11:23:55 +08:00

29 lines
450 B
C

#define PY_SSIZE_T_CLEAN
#include <Python.h>
#if PY_MAJOR_VERSION == 2
PyMODINIT_FUNC init_distorm3(void)
{
(void)Py_InitModule("_distorm3", NULL);
}
#else
static struct PyModuleDef _distorm3_module = {
PyModuleDef_HEAD_INIT,
"_distorm3",
NULL,
-1,
NULL,
};
PyMODINIT_FUNC PyInit__distorm3(void)
{
PyObject *m;
m = PyModule_Create(&_distorm3_module);
if (m == NULL)
return NULL;
return m;
}
#endif