Improve macro for stubs inside of ddraw. Thx to w3seek.
authorMaarten Bosma <maarten@bosma.de>
Sat, 29 Oct 2005 21:07:04 +0000 (21:07 +0000)
committerMaarten Bosma <maarten@bosma.de>
Sat, 29 Oct 2005 21:07:04 +0000 (21:07 +0000)
svn path=/trunk/; revision=18857

reactos/lib/ddraw/rosdraw.h

index b0823c6..687f470 100644 (file)
@@ -93,6 +93,15 @@ VOID Hel_DirectDraw_Release (LPDIRECTDRAW7 iface);
 
 /*********** Macros ***********/
 
-#define DX_STUB return DDERR_UNSUPPORTED; 
+#define DX_STUB \
+       static BOOL firstcall = TRUE; \
+       if (firstcall) \
+       { \
+               char buffer[1024]; \
+               sprintf ( buffer, "Function %s is not implemented yet (%s:%d)\n", __FUNCTION__,__FILE__,__LINE__ ); \
+               OutputDebugStringA(buffer); \
+               firstcall = FALSE; \
+       } \
+       return DDERR_UNSUPPORTED; 
 
 #endif /* __DDRAW_PRIVATE */