Skip to content

Commit 09b366f

Browse files
src/__init__.py: call mupdf.internal_check_ndebug() if available.
This detects differences in NDEBUG settings for pymupdf and mupdf.
1 parent 478b93f commit 09b366f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ def __init__(self):
360360
from . import mupdf
361361
except Exception:
362362
import mupdf
363+
if hasattr(mupdf, 'internal_check_ndebug'):
364+
mupdf.internal_check_ndebug()
363365
mupdf.reinit_singlethreaded()
364366

365367
def _int_rc(text):

0 commit comments

Comments
 (0)