File tree 2 files changed +9
-6
lines changed 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ QUIET = YES
19
19
WARNINGS = YES
20
20
WARN_IF_UNDOCUMENTED = NO
21
21
PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS \
22
- PY_MAJOR_VERSION=3
22
+ PY_MAJOR_VERSION=3 \
23
+ PYBIND11_NOINLINE
Original file line number Diff line number Diff line change @@ -944,11 +944,13 @@ class module_ : public object {
944
944
*this = reinterpret_steal<module_>(obj);
945
945
}
946
946
947
- // Adds an object to the module using the given name. Throws if an object with the given name
948
- // already exists.
949
- //
950
- // overwrite should almost always be false: attempting to overwrite objects that pybind11 has
951
- // established will, in most cases, break things.
947
+ /* * \rst
948
+ Adds an object to the module using the given name. Throws if an object with the given name
949
+ already exists.
950
+
951
+ ``overwrite`` should almost always be false: attempting to overwrite objects that pybind11 has
952
+ established will, in most cases, break things.
953
+ \endrst */
952
954
PYBIND11_NOINLINE void add_object (const char *name, handle obj, bool overwrite = false ) {
953
955
if (!overwrite && hasattr (*this , name))
954
956
pybind11_fail (" Error during initialization: multiple incompatible definitions with name \" " +
You can’t perform that action at this time.
0 commit comments