From 42185c0ec8dc926912a440ced0fae83755d97086 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 5 Mar 2021 16:13:09 -0800 Subject: [PATCH] typemap for std::size_t Unaccountably missing from swig_guile. --- libgnucash/app-utils/gnc-optiondb.i | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgnucash/app-utils/gnc-optiondb.i b/libgnucash/app-utils/gnc-optiondb.i index dcf9571360..cfd4ec771f 100644 --- a/libgnucash/app-utils/gnc-optiondb.i +++ b/libgnucash/app-utils/gnc-optiondb.i @@ -38,6 +38,9 @@ namespace std { %enddef +%typemap(in) std::size_t "$1 = scm_to_ulong($input);"; +%typemap(out) std::size_t "$result = scm_from_ulong($1);"; + //%module sw_gnc_optiondb %{ #include "gnc-optiondb.h"