Skip to content

Commit 4f3484b

Browse files
Excluded SwigDirectors from exception handling
1 parent 00b4d29 commit 4f3484b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PDFTronGo/pdftron.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ import "errors"
226226
import "fmt"
227227
%}
228228

229+
// Disable exception handling for directors
230+
%feature("except", "0") SwigDirector_Callback;
231+
%feature("except", "0") SwigDirector_SignatureHandler;
232+
229233
// Handle exceptions by triggering recoverable panic containing the exception message
230234
%exception {
231235
try {

0 commit comments

Comments
 (0)