mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
dll: FspDebugLog
sys: DEBUGLOG
This commit is contained in:
20
src/dll/debug.c
Normal file
20
src/dll/debug.c
Normal 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
|
Reference in New Issue
Block a user