comparison src/lwasm.c @ 39:efa19ec69df9

tweaked debugging system for expression handler
author lost
date Sat, 03 Jan 2009 19:20:44 +0000
parents 9bd584bb6296
children 4bb7b723e5b7
comparison
equal deleted inserted replaced
38:9bd584bb6296 39:efa19ec69df9
191 va_list args; 191 va_list args;
192 192
193 va_start(args, fmt); 193 va_start(args, fmt);
194 if (debug_level >= level) 194 if (debug_level >= level)
195 { 195 {
196 fprintf(stderr, "DEBUG %d: ", level); 196 if (level > 0)
197 fprintf(stderr, "DEBUG %d: ", level);
197 vfprintf(stderr, fmt, args); 198 vfprintf(stderr, fmt, args);
198 fputc('\n', stderr); 199 fputc('\n', stderr);
199 } 200 }
200 va_end(args); 201 va_end(args);
201 } 202 }