NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_COLOR_DEBUG_H
24#define MUTT_COLOR_DEBUG_H
25
26#include "mutt/lib.h"
27#include "curses2.h"
28
29#ifdef USE_DEBUG_COLOR
30
31const char *color_log_color(color_t fg, color_t bg);
32
33void curses_color_dump(struct CursesColor *cc, const char *prefix);
34
35void ansi_colors_dump (struct Buffer *buf);
36void curses_colors_dump(struct Buffer *buf);
37void merged_colors_dump(struct Buffer *buf);
38
39#define color_debug(LEVEL, ...) MuttLogger(0, __FILE__, __LINE__, __func__, LEVEL, __VA_ARGS__)
40
41#else
42
43static inline const char *color_log_color(color_t fg, color_t bg) { return ""; }
44
45static inline void curses_color_dump(struct CursesColor *cc, const char *prefix) {}
46
47static inline void ansi_colors_dump (struct Buffer *buf) {}
48static inline void curses_colors_dump(struct Buffer *buf) {}
49static inline void merged_colors_dump(struct Buffer *buf) {}
50
51static inline int color_debug(enum LogLevel level, const char *format, ...) { return 0; }
52
53#endif
54
55#endif /* MUTT_COLOR_DEBUG_H */
Curses Colour.
int32_t color_t
Type for 24-bit colour value.
Definition curses2.h:30
static void curses_color_dump(struct CursesColor *cc, const char *prefix)
Definition debug.h:45
static void curses_colors_dump(struct Buffer *buf)
Definition debug.h:48
static void merged_colors_dump(struct Buffer *buf)
Definition debug.h:49
static void ansi_colors_dump(struct Buffer *buf)
Definition debug.h:47
static int color_debug(enum LogLevel level, const char *format,...)
Definition debug.h:51
static const char * color_log_color(color_t fg, color_t bg)
Definition debug.h:43
LogLevel
Names for the Logging Levels.
Definition logging2.h:40
Convenience wrapper for the library headers.
String manipulation buffer.
Definition buffer.h:36
Colour in the ncurses palette.
Definition curses2.h:40