Go to the documentation of this file.
39 # ifndef PNG_LITERAL_SHARP
40 # define PNG_LITERAL_SHARP 0x23
42 # ifndef PNG_LITERAL_LEFT_SQUARE_BRACKET
43 # define PNG_LITERAL_LEFT_SQUARE_BRACKET 0x5b
45 # ifndef PNG_LITERAL_RIGHT_SQUARE_BRACKET
46 # define PNG_LITERAL_RIGHT_SQUARE_BRACKET 0x5d
48 # ifndef PNG_STRING_NEWLINE
49 # define PNG_STRING_NEWLINE "\n"
54 # if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER)
61 # define png_debug(l,m) _RPT0(_CRT_WARN,m PNG_STRING_NEWLINE)
64 # define png_debug1(l,m,p1) _RPT1(_CRT_WARN,m PNG_STRING_NEWLINE,p1)
67 # define png_debug2(l,m,p1,p2) \
68 _RPT2(_CRT_WARN,m PNG_STRING_NEWLINE,p1,p2)
72 # ifndef PNG_STDIO_SUPPORTED
75 # ifndef PNG_DEBUG_FILE
76 # define PNG_DEBUG_FILE stderr
85 # define png_debug(l,m) \
88 fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
89 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \
93 # define png_debug1(l,m,p1) \
96 fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
97 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \
101 # define png_debug2(l,m,p1,p2) \
104 fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
105 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \
110 # define png_debug(l,m) \
114 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \
115 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))), \
116 m,PNG_STRING_NEWLINE); \
117 fprintf(PNG_DEBUG_FILE,format); \
121 # define png_debug1(l,m,p1) \
125 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \
126 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))), \
127 m,PNG_STRING_NEWLINE); \
128 fprintf(PNG_DEBUG_FILE,format,p1); \
132 # define png_debug2(l,m,p1,p2) \
136 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \
137 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))), \
138 m,PNG_STRING_NEWLINE); \
139 fprintf(PNG_DEBUG_FILE,format,p1,p2); \
149 # define png_debug(l, m) ((void)0)
152 # define png_debug1(l, m, p1) ((void)0)
155 # define png_debug2(l, m, p1, p2) ((void)0)