3 * \file mathparser_flags.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Enrico Forestieri
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATHPARSER_FLAGS_H
13 #define MATHPARSER_FLAGS_H
22 /// Start parsing in text mode.
26 /// Quiet operation (no warnigs or errors).
28 /// Wrap unicode symbols in \text{}.
30 /// Track macro creation while loading a document
35 inline flags
operator|(flags
const f
, flags
const g
)
37 return static_cast<flags
>(int(f
) | int(g
));
41 inline flags
& operator|=(flags
& f
, flags g
)
43 return f
= static_cast<flags
>(int(f
) | int(g
));
47 inline flags
operator&(flags
const f
, flags
const g
)
49 return static_cast<flags
>(int(f
) & int(g
));