mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
parent
06b9e3af8b
commit
0ce7215ee9
@ -3814,7 +3814,7 @@ write_function_for_name(ostream &out, Object *obj,
|
|||||||
// None of the remaps take any keyword arguments, so let's check that
|
// None of the remaps take any keyword arguments, so let's check that
|
||||||
// we take none. This saves some checks later on.
|
// we take none. This saves some checks later on.
|
||||||
indent(out, 4) << "if (kwds == nullptr || PyDict_GET_SIZE(kwds) == 0) {\n";
|
indent(out, 4) << "if (kwds == nullptr || PyDict_GET_SIZE(kwds) == 0) {\n";
|
||||||
if (min_args == 1 && min_args == 1) {
|
if (min_args == 1 && max_args == 1) {
|
||||||
indent(out, 4) << " PyObject *arg = PyTuple_GET_ITEM(args, 0);\n";
|
indent(out, 4) << " PyObject *arg = PyTuple_GET_ITEM(args, 0);\n";
|
||||||
always_returns = write_function_forset(out, mii->second, min_args,
|
always_returns = write_function_forset(out, mii->second, min_args,
|
||||||
max_args, expected_params, 6,
|
max_args, expected_params, 6,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user