diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-17 16:16:41 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-17 16:38:59 +0300 |
commit | b7e1660d405d9d73f1aff54358a6d2d1461a75d0 (patch) | |
tree | daa73f48a05438d953ea4eb5873db52405244d4e /source/blender/python/gpu/gpu_py_select.c | |
parent | 1ea6394fc8446cb54ec011d0e210135b8b5a4d33 (diff) |
Cleanup: Use 'pygpu_' prefix in the cpython GPU module
`py_` prefix can be confused with the Python's own API's.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_select.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_select.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/python/gpu/gpu_py_select.c b/source/blender/python/gpu/gpu_py_select.c index e92ef9f7504..b72aca6a792 100644 --- a/source/blender/python/gpu/gpu_py_select.c +++ b/source/blender/python/gpu/gpu_py_select.c @@ -40,14 +40,14 @@ /** \name Methods * \{ */ -PyDoc_STRVAR(py_select_load_id_doc, +PyDoc_STRVAR(pygpu_select_load_id_doc, ".. function:: load_id(id)\n" "\n" " Set the selection ID.\n" "\n" " :param id: Number (32-bit uint).\n" " :type select: int\n"); -static PyObject *py_select_load_id(PyObject *UNUSED(self), PyObject *value) +static PyObject *pygpu_select_load_id(PyObject *UNUSED(self), PyObject *value) { uint id; if ((id = PyC_Long_AsU32(value)) == (uint)-1) { @@ -62,25 +62,25 @@ static PyObject *py_select_load_id(PyObject *UNUSED(self), PyObject *value) /** \name Module * \{ */ -static struct PyMethodDef py_select_methods[] = { +static struct PyMethodDef pygpu_select__tp_methods[] = { /* Manage Stack */ - {"load_id", (PyCFunction)py_select_load_id, METH_O, py_select_load_id_doc}, + {"load_id", (PyCFunction)pygpu_select_load_id, METH_O, pygpu_select_load_id_doc}, {NULL, NULL, 0, NULL}, }; -PyDoc_STRVAR(py_select_doc, "This module provides access to selection."); -static PyModuleDef py_select_module_def = { +PyDoc_STRVAR(pygpu_select__tp_doc, "This module provides access to selection."); +static PyModuleDef pygpu_select_module_def = { PyModuleDef_HEAD_INIT, .m_name = "gpu.select", - .m_doc = py_select_doc, - .m_methods = py_select_methods, + .m_doc = pygpu_select__tp_doc, + .m_methods = pygpu_select__tp_methods, }; PyObject *bpygpu_select_init(void) { PyObject *submodule; - submodule = PyModule_Create(&py_select_module_def); + submodule = PyModule_Create(&pygpu_select_module_def); return submodule; } |