1
0
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:
thor
2015-09-06 15:14:38 +00:00
parent 9fe2973faa
commit ecd37a4c34
2 changed files with 80 additions and 66 deletions

View File

@ -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"; }
}