Skip to content

Add macro functions for generating simple getsetters #4

@kivkiv12345

Description

@kivkiv12345

A lot of boilerplate code was added as of the reintroduction of getsetters by 3671bfa
Much of this could be removed by a macro function for simple getter functions like:
static PyObject * Parameter_get_id(ParameterObject *self, void *closure) {
return Py_BuildValue("H", self->param->id);
}
Such a macro would need a parameter for field_name and return_type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions