Improve macro for stubs inside of ddraw. Thx to w3seek. Modified: trunk/reactos/lib/ddraw/rosdraw.h _____
Modified: trunk/reactos/lib/ddraw/rosdraw.h --- trunk/reactos/lib/ddraw/rosdraw.h 2005-10-29 20:08:49 UTC (rev 18856) +++ trunk/reactos/lib/ddraw/rosdraw.h 2005-10-29 21:07:04 UTC (rev 18857) @@ -93,6 +93,15 @@
/*********** 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 */