~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/frontends/nine/nine_debug.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define _NINE_DEBUG_H_
25
25
 
26
26
#include "util/u_debug.h"
27
 
#include "pipe/p_compiler.h"
 
27
#include "util/compiler.h"
28
28
 
29
29
void
30
30
_nine_debug_printf( unsigned long flag,
38
38
#define WARN(fmt, ...) _nine_debug_printf(DBG_WARN, __func__, fmt, ## __VA_ARGS__)
39
39
#define WARN_ONCE(fmt, ...) \
40
40
    do { \
41
 
        static boolean once = TRUE; \
 
41
        static bool once = true; \
42
42
        if (once) { \
43
 
            once = FALSE; \
 
43
            once = false; \
44
44
            _nine_debug_printf(DBG_WARN, __func__, fmt, ## __VA_ARGS__); \
45
45
        } \
46
46
    } while(0)
107
107
 * It also prints debug message if the assertion fails. */
108
108
#if defined(DEBUG) || !defined(NDEBUG)
109
109
#define user_error(x) \
110
 
    (!(x) ? (DBG_FLAG(DBG_USER, "User assertion failed: `%s'\n", #x), TRUE) \
111
 
          : FALSE)
 
110
    (!(x) ? (DBG_FLAG(DBG_USER, "User assertion failed: `%s'\n", #x), true) \
 
111
          : false)
112
112
#else
113
113
#define user_error(x) (!(x) ? TRUE : FALSE)
114
114
#endif