Skip to content

Commit

Permalink
Another macro that includes trailing comma inside the macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 19, 2024
1 parent 3e60fe9 commit e3e4549
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ReflowComments: false

# CPython macros that have the trailing comma/semi-colon as part of
# the macro.
StatementMacros: ["PyObject_HEAD"]
StatementMacros: ["PyObject_HEAD", "PyVarObject_HEAD_INIT"]

# PyVarObject_HEAD_INIT should be part of above, but doesn't work
# (needs clang-format 17) so until then clang-format off/on needs to
Expand Down
3 changes: 2 additions & 1 deletion src/apsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ static PyObject *APSWException;

/* no change sentinel for vtable updates */
static PyTypeObject apsw_no_change_object = {
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "apsw.no_change",
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "apsw.no_change",
.tp_doc = Apsw_no_change_DOC,
};

Expand Down

0 comments on commit e3e4549

Please sign in to comment.