1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #include "token.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | #if defined(DEBUG_MOC) |
9 | const char *tokenTypeName(Token t) |
10 | { |
11 | switch (t) { |
12 | #define CREATE_CASE(Name) case Name: return #Name; |
13 | FOR_ALL_TOKENS(CREATE_CASE) |
14 | #undef CREATE_CASE |
15 | } |
16 | return ""; |
17 | } |
18 | #endif |
19 | |
20 | QT_END_NAMESPACE |
21 |