summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-26 14:34:31 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:03 +0200
commit2ccb4fe72b9af0241d16a0d206fc8dcf3c2497df (patch)
treea983427b532e9f082bc58ce26b91ff782f858f55 /platform
parentcabf4489896a2a978361eb6e1df4b4aef81193f4 (diff)
downloadmupdf-2ccb4fe72b9af0241d16a0d206fc8dcf3c2497df.tar.xz
Clean up store debug printing.
Replace fz_print_hash with fz_hash_for_each iterator. Use string formatting callback.
Diffstat (limited to 'platform')
-rw-r--r--platform/gl/gl-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index 060b8e13..25b9d664 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -1573,6 +1573,11 @@ int main(int argc, char **argv)
ui_finish_fonts(ctx);
+#ifndef NDEBUG
+ if (fz_atoi(getenv("FZ_DEBUG_STORE")))
+ fz_debug_store(ctx);
+#endif
+
fz_drop_link(ctx, links);
fz_drop_page(ctx, page);
fz_drop_outline(ctx, outline);