mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-06 07:30:17 +00:00
Update bindings-cpp.md
This commit is contained in:
parent
3c051df06a
commit
8bc7bf3bd7
@ -7,6 +7,7 @@ order: 17
|
|||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
pkpy provides a [pybind11](https://pybind11.readthedocs.io/en/stable/) compatible layer which allows users to do convenient bindings.
|
pkpy provides a [pybind11](https://pybind11.readthedocs.io/en/stable/) compatible layer which allows users to do convenient bindings.
|
||||||
|
Header files are located in the `include/pybind11` directory. Make sure you have added `-Iinclude` to your compiler flags.
|
||||||
|
|
||||||
To begin with, use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects.
|
To begin with, use `py::scoped_interpreter guard{}` to start the interpreter before using any Python objects.
|
||||||
Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.
|
Or explicitly call `py::interpreter::initialize()` and `py::interpreter::finalize()`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user