FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp-python-binding-benchmark/src/py-pybind11/pycolor.cpp at main · yanto77/cpp-python-binding-benchmark · GitHub
yanto77
cpp-python-binding-benchmark
Repository navigation
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp-python-binding-benchmark
/
src
/
py-pybind11
/
pycolor.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 315 Bytes
Breadcrumbs
cpp-python-binding-benchmark
/
src
/
py-pybind11
/
pycolor.cpp
Copy path
File metadata and controls
13 lines (11 loc) · 315 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
#
include
"
cpp-lib/mandelbrot.h
"
#
include
<
pybind11/pybind11.h
>
namespace
py
=
pybind11;
void
init_pycolor
(py::module_& m)
{
py::class_<
color_t
>(m,
"
PyColor
"
)
.
def
(
py::init
())
.
def_readwrite
(
"
r
"
, &
color_t
::r)
.
def_readwrite
(
"
g
"
, &
color_t
::g)
.
def_readwrite
(
"
b
"
, &
color_t
::b);
}
Back
|
FazBrowse Home
|
New Git URL