~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/util/u_debug.h

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
   (void) format; /* silence warning */
92
92
#endif
93
93
}
 
94
#else /* is Haiku */
 
95
/* Haiku provides debug_printf in libroot with OS.h */
 
96
#include <OS.h>
 
97
#endif
94
98
 
95
 
#endif /* !PIPE_OS_HAIKU */
96
99
 
97
100
/*
98
101
 * ... isn't portable so we need to pass arguments in parentheses.
212
215
 
213
216
 
214
217
/**
 
218
 * Emit a warning message, but only once.
 
219
 */
 
220
#ifdef DEBUG
 
221
#define debug_warn_once(__msg) \
 
222
   do { \
 
223
      static bool warned = FALSE; \
 
224
      if (!warned) { \
 
225
         _debug_printf("%s:%u:%s: one time warning: %s\n", \
 
226
                       __FILE__, __LINE__, __FUNCTION__, __msg); \
 
227
         warned = TRUE; \
 
228
      } \
 
229
   } while (0)
 
230
#else
 
231
#define debug_warn_once(__msg) \
 
232
   ((void)0) 
 
233
#endif
 
234
 
 
235
 
 
236
/**
215
237
 * Output an error message. Not muted on release version.
216
238
 */
217
239
#ifdef DEBUG