Cleanup: consistent use of back-ticks in code-comments
This commit is contained in:
@@ -417,7 +417,7 @@ static PyObject *pygpu_batch_draw_instanced(BPyGPUBatch *self, PyObject *args, P
|
||||
"O!" /* `program` */
|
||||
"|$" /* Optional keyword only arguments. */
|
||||
"i" /* `instance_start` */
|
||||
"i" /* `instance_count' */
|
||||
"i" /* `instance_count` */
|
||||
":GPUBatch.draw_instanced",
|
||||
_keywords,
|
||||
nullptr,
|
||||
@@ -461,8 +461,8 @@ static PyObject *pygpu_batch_draw_range(BPyGPUBatch *self, PyObject *args, PyObj
|
||||
PY_ARG_PARSER_HEAD_COMPAT()
|
||||
"O!" /* `program` */
|
||||
"|$" /* Optional keyword only arguments. */
|
||||
"i" /* `elem_start' */
|
||||
"i" /* `elem_count' */
|
||||
"i" /* `elem_start` */
|
||||
"i" /* `elem_count` */
|
||||
":GPUBatch.draw_range",
|
||||
_keywords,
|
||||
nullptr,
|
||||
|
||||
@@ -798,8 +798,8 @@ static PyMethodDef pygpu_framebuffer__tp_methods[] = {
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Ideally type aliases would de-duplicate: `blender::gpu::Texture | dict[str, int |
|
||||
* blender::gpu::Texture]` in this doc-string. */
|
||||
/* Ideally type aliases would de-duplicate:
|
||||
* `blender::gpu::Texture | dict[str, int | blender::gpu::Texture]` in this doc-string. */
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
pygpu_framebuffer__tp_doc,
|
||||
|
||||
@@ -2273,7 +2273,7 @@ static StructRNA *bpy_prop_deferred_data_or_srna(PyObject *self,
|
||||
self = PyTuple_GET_ITEM(args, 0);
|
||||
args = PyTuple_New(0);
|
||||
|
||||
/* This will be #BPy_BoolProperty` or one of the functions that define a type. */
|
||||
/* This will be #BPy_BoolProperty or one of the functions that define a type. */
|
||||
PyCFunctionWithKeywords method_fn = (PyCFunctionWithKeywords)(void *)method_def->ml_meth;
|
||||
*r_deferred_result = method_fn(self, args, kw);
|
||||
Py_DECREF(args);
|
||||
|
||||
@@ -83,7 +83,7 @@ static int parse_syntax_error(PyObject *err,
|
||||
*message = nullptr;
|
||||
*filename = nullptr;
|
||||
|
||||
/* new style errors. `err' is an instance */
|
||||
/* New style errors. `err` is an instance. */
|
||||
*message = _PyObject_GetAttrId(err, &PyId_msg);
|
||||
if (!*message) {
|
||||
goto finally;
|
||||
|
||||
Reference in New Issue
Block a user