Get a style, indexed by name.
- Parameters
-
- Returns
- the style or parser::m_fallback if no such style is registered
Definition at line 514 of file parser.cpp.
References __D_ASSERT, likely, m_fallback, m_styles, csdbg::style::name(), and unlikely.
Referenced by highlight().
522 if (
unlikely(strcmp(stl->name(), nm) == 0) )
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
unsigned int u32
32-bit unsigned integer
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
static style * m_fallback
Shared fallback style.
#define __D_ASSERT(x)
Assertion macro.
chain< style > * m_styles
VT100 style collection.