Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
token.cpp
Go to the documentation of this file.
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
7
8#if defined(DEBUG_MOC)
9const 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
20QT_END_NAMESPACE