Instantiate gnc_register_number_range_option templates in SWIG.

pull/1191/head
John Ralls 6 years ago
parent 31a0153fec
commit 52600bbd1f

@ -142,6 +142,12 @@ scm_to_value<int64_t>(SCM new_value)
return scm_to_int64(new_value);
}
template <> inline double
scm_to_value<double>(SCM new_value)
{
return scm_to_double(new_value);
}
template <>inline SCM
scm_from_value<GncOptionAccountList>(GncOptionAccountList value)
{
@ -384,7 +390,10 @@ wrap_unique_ptr(GncOptionDBPtr, GncOptionDB);
%template(set_option_string) set_option<std::string>;
%template(set_option_int) set_option<int>;
%template(set_option_time64) set_option<time64>;
};
};
%template(gnc_register_number_range_option_double) gnc_register_number_range_option<double>;
%template(gnc_register_number_range_option_int) gnc_register_number_range_option<int>;
%inline %{
using GncOptionDBPtr = std::unique_ptr<GncOptionDB>;

Loading…
Cancel
Save