Macros
highlight.h File Reference
#include <stdbool.h>
#include "nvim/highlight_defs.h"
#include "nvim/api/private/defs.h"
#include "nvim/ui.h"

Go to the source code of this file.

Macros

#define HL_SET_DEFAULT_COLORS(rgb_fg, rgb_bg, rgb_sp)
 

Macro Definition Documentation

#define HL_SET_DEFAULT_COLORS (   rgb_fg,
  rgb_bg,
  rgb_sp 
)
Value:
do { \
bool dark_ = (*p_bg == 'd'); \
rgb_fg = rgb_fg != -1 ? rgb_fg : (dark_ ? 0xFFFFFF : 0x000000); \
rgb_bg = rgb_bg != -1 ? rgb_bg : (dark_ ? 0x000000 : 0xFFFFFF); \
rgb_sp = rgb_sp != -1 ? rgb_sp : 0xFF0000; \
} while (0);
EXTERN char_u * p_bg
Definition: option_defs.h:305