mirror of
http://mpg123.de/trunk/.git
synced 2025-07-31 13:24:22 +03:00
Add ME": " prefix to debug.h messages.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@3815 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@ -30,7 +30,14 @@ print <<EOT;
|
||||
It's cumbersome to have them all with different names, though...
|
||||
*/
|
||||
|
||||
#ifdef ME
|
||||
#define DBGPRFX ME": "
|
||||
#else
|
||||
#define DBGPRFX ""
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#include <stdio.h>
|
||||
EOT
|
||||
printdefs(1);
|
||||
@ -70,7 +77,7 @@ sub printdefs
|
||||
unshift(@args, '') if(@args);
|
||||
print '#define '.$type.($i > 1 ? ($i-1) : '').'('.$rv.'s';
|
||||
print join(', ', @args).') ';
|
||||
if($forreal){ print $pre.'fprintf(stderr, "[" __FILE__ ":%i] '.$type.': " s "\n", __LINE__'.join(', ', @args).")$post\n"; }
|
||||
if($forreal){ print $pre.'fprintf(stderr, DBGPRFX"[" __FILE__ ":%i] '.$type.': " s "\n", __LINE__'.join(', ', @args).")$post\n"; }
|
||||
#else{ print "do {} while(0)\n"; }
|
||||
else{ print "$notreal\n"; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user