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
32 /// Parse a macro definition
37 inline flags operator|(flags const f, flags const g)
39 return static_cast<flags>(int(f) | int(g));
43 inline flags & operator|=(flags & f, flags g)
45 return f = static_cast<flags>(int(f) | int(g));
49 inline flags operator&(flags const f, flags const g)
51 return static_cast<flags>(int(f) & int(g));