Skip to content

Commit 00b4d29

Browse files
Added additional director excludes for SwigDirector_Callback and SwigDirector_SignatureHandler
1 parent e91bf8f commit 00b4d29

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PDFTronGo/pdftron.i

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,16 @@ import "fmt"
263263
return $cgocall
264264
%}
265265

266+
%typemap(gotype, out) SwigDirector_Callback* "$gotype"
267+
%typemap(cgoout, out) SwigDirector_Callback* %{
268+
return $cgocall
269+
%}
270+
271+
%typemap(gotype, out) SwigDirector_SignatureHandler* "$gotype"
272+
%typemap(cgoout, out) SwigDirector_SignatureHandler* %{
273+
return $cgocall
274+
%}
275+
266276
// Macro for generating gotype (adding error to return) and cgoout (adding panic recovery to return errors) typemaps
267277
%define ERROR_HANDLING_TYPEMAPS(TYPE)
268278
%typemap(gotype, out) TYPE "$gotype, error"

0 commit comments

Comments
 (0)