Skip to content

Commit 543d5a4

Browse files
committed
Add semicolons to deprecated PYBIND11_OVERLOAD macros to match original behavior
1 parent 9c29ea3 commit 543d5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ PYBIND11_NAMESPACE_END(detail)
22962296
do { \
22972297
pybind11::detail::PYBIND11_OVERLOAD_deprecated(); \
22982298
PYBIND11_OVERRIDE_PURE_NAME(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), name, fn, __VA_ARGS__); \
2299-
} while (false)
2299+
} while (false);
23002300
#define PYBIND11_OVERLOAD(ret_type, cname, fn, ...) \
23012301
do { \
23022302
pybind11::detail::PYBIND11_OVERLOAD_deprecated(); \
@@ -2306,7 +2306,7 @@ PYBIND11_NAMESPACE_END(detail)
23062306
do { \
23072307
pybind11::detail::PYBIND11_OVERLOAD_deprecated(); \
23082308
PYBIND11_OVERRIDE_PURE(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), fn, __VA_ARGS__); \
2309-
} while (false)
2309+
} while (false);
23102310

23112311
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
23122312

0 commit comments

Comments
 (0)