![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Go to the source code of this file.
Functions | |
| void | shambindings::init_lib (py::module &m) |
| Init python bindings and register them to Python API. | |
| void | shambindings::init_embed (py::module &m, bool hook_stdout=true) |
| Init python bindings and register them to Python API. | |
| void | shambindings::expect_init_lib (SourceLocation loc=SourceLocation{}) |
| Expect python bindings to be initialized as lib mode, throws if not. | |
| void | shambindings::expect_init_embed (SourceLocation loc=SourceLocation{}) |
| Expect python bindings to be initialized as embed mode, throws if not. | |
Definition in file pybindings.hpp.
| void shambindings::expect_init_embed | ( | SourceLocation | loc = SourceLocation{} | ) |
Expect python bindings to be initialized as embed mode, throws if not.
Definition at line 154 of file pybindings.cpp.
| void shambindings::expect_init_lib | ( | SourceLocation | loc = SourceLocation{} | ) |
Expect python bindings to be initialized as lib mode, throws if not.
Definition at line 144 of file pybindings.cpp.
| void shambindings::init_embed | ( | py::module & | m, |
| bool | hook_stdout = true ) |
Init python bindings and register them to Python API.
| m | the python module to bind definitions on |
| hook_stdout | if true, sys.stdout and sys.stderr will be hooked |
Definition at line 136 of file pybindings.cpp.
| void shambindings::init_lib | ( | py::module & | m | ) |
Init python bindings and register them to Python API.
| m | the python module to bind definitions on |
Definition at line 134 of file pybindings.cpp.