Doxygen
Loading...
Searching...
No Matches
doxygen_lex.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 2021 by Dimitri van Heesch.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation under the terms of the GNU General Public License is hereby
7 * granted. No representations are made about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied warranty.
9 * See the GNU General Public License for more details.
10 *
11 * Documents produced by Doxygen are derivative works derived from the
12 * input used in their production; they are not affected by this license.
13 *
14 */
15
16#ifndef DOXYGEN_LEX_H
17#define DOXYGEN_LEX_H
18
19#ifndef LEX_NO_REENTRANT
20#ifndef LEX_NO_INPUT_FILENAME
21#define YY_FATAL_ERROR(msg) \
22{ \
23 QCString msg1 = msg; \
24 msg1 += "\n lexical analyzer: "; \
25 msg1 += getLexerFILE(); \
26 if (!static_cast<yyguts_t*>(yyscanner)->yyextra_r->fileName.isEmpty()) \
27 { \
28 msg1 += " (for: "; \
29 msg1 += static_cast<yyguts_t*>(yyscanner)->yyextra_r->fileName; \
30 msg1 += ")"; \
31 } \
32 msg1 += "\n"; \
33 yy_fatal_error( qPrint(msg1) , yyscanner); \
34}
35#else
36#define YY_FATAL_ERROR(msg) \
37{ \
38 QCString msg1 = msg; \
39 msg1 += "\n lexical analyzer: "; \
40 msg1 += getLexerFILE(); \
41 msg1 += "\n"; \
42 yy_fatal_error( qPrint(msg1) , yyscanner); \
43}
44#endif
45#else
46#define YY_FATAL_ERROR(msg) \
47{ \
48 QCString msg1 = msg; \
49 msg1 += "\n lexical analyzer: "; \
50 msg1 += getLexerFILE(); \
51 msg1 += "\n"; \
52 yy_fatal_error( qPrint(msg1)); \
53}
54#endif
55
56#endif