Ignore:
Timestamp:
Nov 30, 2001, 8:02:33 PM (24 years ago)
Author:
sandervl
Message:

removed TRACE/WARN macro redefinition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/olepicture.c

    r7501 r7508  
    5656#endif
    5757
    58 #ifdef __WIN32OS2__
    59 #undef FIXME
    60 #undef TRACE
    61 #ifdef DEBUG
    62 // PH 2001-11-30
    63 // this macro definition causes the control leave the scope of a
    64 // non-curly-braced preceeding if statement. Therefore,
    65 //   if (p!=NULL)
    66 //      TRACE("p->a=%d", p->a)
    67 // crashes.
    68 //
    69 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
    70 // !!! ARE PUT INTO CURLY BRACES
    71 #define TRACE WriteLog("%s", __FUNCTION__); WriteLog
    72 #define FIXME WriteLog("FIXME %s", __FUNCTION__); WriteLog
    73 #else
    74 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    75 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    76 #endif
    77 #endif
    78 
    7958DEFAULT_DEBUG_CHANNEL(ole);
    8059
     
    174153
    175154  if (pictDesc)
    176   {
    177     // PH 2001-11-29 TRACE must be in curly braces otherwise
    178     // the scope of the if statement is left and we'll crash
    179     // on picDesc == NULL
    180155    TRACE("(%p) type = %d\n", pictDesc, pictDesc->picType);
    181   }
    182156
    183157  /*
     
    507481        This, hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds);
    508482  if(prcWBounds)
    509   {
    510483    TRACE("prcWBounds (%d,%d) - (%d,%d)\n", prcWBounds->left, prcWBounds->top,
    511           prcWBounds->right, prcWBounds->bottom);
    512   }
     484          prcWBounds->right, prcWBounds->bottom);
    513485
    514486  /*
     
    851823  }
    852824  if (xread != header[1])
    853   {
    854825    FIXME("Could only read %ld of %ld bytes?\n",xread,header[1]);
    855   }
    856826
    857827  magic = xbuf[0] + (xbuf[1]<<8);
     
    12851255  hr = IPicture_QueryInterface(newpic,riid,ppvObj);
    12861256  if (hr)
    1287   {
    1288     FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
    1289   }
     1257      FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
    12901258  IPicture_Release(newpic);
    12911259  return hr;
Note: See TracChangeset for help on using the changeset viewer.