Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Angelo-abel
autopybind11
Commits
17939066
Commit
17939066
authored
Jun 02, 2020
by
Joe Snyder
Browse files
WIP: Friend function addition.
parent
f467e3c4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
autopybind11.py
View file @
17939066
...
...
@@ -75,7 +75,8 @@ class BindingsGenerator:
# Capture each argument and a default value, if found.
arg_string
=
""
if
member_function
.
name
==
"sinh"
:
import
pdb
;
pdb
.
set_trace
()
for
arg
in
member_function
.
arguments
:
next_arg_str
=
self
.
opts
.
member_func_arg_fmt
.
format
(
arg
.
name
,
" = %s"
%
arg
.
default_value
if
arg
.
default_value
else
""
)
...
...
example/test.hpp
View file @
17939066
#ifndef TEST_HPP
#define TEST_HPP
double
sinh
(
double
param
);
namespace
example
{
template
<
typename
T
=
double
>
...
...
@@ -32,6 +33,7 @@ public:
inline
T
get_priv_var2
()
{
return
priv_var2
;
}
inline
void
set_priv_var1
(
T
const
&
val
)
{
priv_var1
=
val
;
}
inline
static
float
summer
(
float
t1
,
int
t2
=
0
,
int
t3
=
14
)
{
return
t1
+
t2
+
t3
;
}
friend
double
sinh
(
double
param
);
#ifdef TESTFLAG1
inline
void
flag1_set
()
{}
...
...
tmpt87z4axv.xml
0 → 100644
View file @
17939066
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment