Commit 17939066 authored by Joe Snyder's avatar Joe Snyder
Browse files

WIP: Friend function addition.

parent f467e3c4
......@@ -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 "")
......
#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() {}
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment