mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-21 23:39:09 +00:00
consistent macro naming throughout the project
This commit is contained in:
@@ -87,7 +87,7 @@ a file named :file:`example.cpp` with the following contents:
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
PYBIND_PLUGIN(example) {
|
||||
PYBIND11_PLUGIN(example) {
|
||||
py::module m("example", "pybind11 example plugin");
|
||||
|
||||
m.def("add", &add, "A function which adds two numbers");
|
||||
@@ -95,7 +95,7 @@ a file named :file:`example.cpp` with the following contents:
|
||||
return m.ptr();
|
||||
}
|
||||
|
||||
The :func:`PYBIND_PLUGIN` macro creates a function that will be called when an
|
||||
The :func:`PYBIND11_PLUGIN` macro creates a function that will be called when an
|
||||
``import`` statement is issued from within Python. The next line creates a
|
||||
module named ``example`` (with the supplied docstring). The method
|
||||
:func:`module::def` generates binding code that exposes the
|
||||
|
||||
Reference in New Issue
Block a user