cocco-ddraw/inc/debug.h
2017-11-26 08:49:30 +01:00

24 lines
417 B
C

#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
void DebugPrint(const char *format, ...);
//#define _DEBUG 1
//use OutputDebugStringA rather than printf
//#define _DEBUGstring 1
//log everything (slow)
//#define _DEBUGx 1
#ifdef _DEBUG
#ifdef _DEBUGstring
#define printf(format, ...) DebugPrint("xDBG " format, ##__VA_ARGS__)
#endif
#else
#define printf(format, ...)
#endif