mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
745 B
47 lines
745 B
/* --------------------------------------------------------------------
|
|
|
|
File : sysinc.h
|
|
|
|
Description :
|
|
|
|
System dependent functions for the Macintosh.
|
|
|
|
History :
|
|
|
|
mariogo 10-19-94 Bits 'n pieces
|
|
|
|
-------------------------------------------------------------------- */
|
|
#include "sysinc.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
void
|
|
MacDbgPrint(
|
|
IN char *Format,
|
|
...
|
|
)
|
|
/*
|
|
Prints to a Macintosh debugger.
|
|
|
|
Bugs:
|
|
Maxs out at 256 characters.
|
|
Break's into the debugger.
|
|
*/
|
|
{
|
|
char Buffer[256];
|
|
int bytes;
|
|
va_list args;
|
|
|
|
va_start(args, Format);
|
|
|
|
bytes = vsprintf(Buffer+1, Format, args);
|
|
|
|
*Buffer = bytes;
|
|
|
|
DebugStr(Buffer);
|
|
|
|
// Will print the string and break into the debugger.
|
|
|
|
va_end(args);
|
|
}
|
|
|