23 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
24 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
25 |
* |
* |
26 |
* $Id: portab.h,v 1.46 2003-02-18 15:48:15 chl Exp $ |
* $Id: portab.h,v 1.46.2.2 2003-03-15 14:32:56 suxen_drol Exp $ |
27 |
* |
* |
28 |
****************************************************************************/ |
****************************************************************************/ |
29 |
|
|
47 |
|
|
48 |
/* debug level for this library */ |
/* debug level for this library */ |
49 |
#ifdef _DEBUG |
#ifdef _DEBUG |
50 |
#define DPRINTF_LEVEL 0x000000ff |
#ifndef DPRINTF_LEVEL |
51 |
|
#define DPRINTF_LEVEL 0x8000000f |
52 |
|
#endif |
53 |
#else |
#else |
54 |
#define DPRINTF_LEVEL 0 |
#define DPRINTF_LEVEL 0 |
55 |
#endif |
#endif |
136 |
char buf[DPRINTF_BUF_SZ]; |
char buf[DPRINTF_BUF_SZ]; |
137 |
va_start(args, fmt); |
va_start(args, fmt); |
138 |
vsprintf(buf, fmt, args); |
vsprintf(buf, fmt, args); |
139 |
|
strcat(buf,"\n"); |
140 |
OutputDebugString(buf); |
OutputDebugString(buf); |
141 |
fprintf(stderr, "%s\n", buf); |
fputs(buf, stderr); |
142 |
} |
} |
143 |
} |
} |
144 |
# else |
# else |