dll: FspDebugLog

sys: DEBUGLOG
This commit is contained in:
Bill Zissimopoulos
2015-11-30 21:00:06 -08:00
parent f149301125
commit 7f182ac04d
8 changed files with 87 additions and 28 deletions

20
src/dll/debug.c Normal file
View File

@ -0,0 +1,20 @@
/**
* @file dll/debug.c
*
* @copyright 2015 Bill Zissimopoulos
*/
#include <dll/library.h>
#include <stdarg.h>
#if !defined(NDEBUG)
VOID FspDebugLog(const char *format, ...)
{
char buf[512];
va_list ap;
va_start(ap, format);
StringCbVPrintfA(buf, sizeof buf, format, ap);
va_end(ap);
OutputDebugStringA(buf);
}
#endif