diff options
Diffstat (limited to 'source/compiler-core/slang-token.cpp')
| -rw-r--r-- | source/compiler-core/slang-token.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/compiler-core/slang-token.cpp b/source/compiler-core/slang-token.cpp index 576b08d66..5dd64b96a 100644 --- a/source/compiler-core/slang-token.cpp +++ b/source/compiler-core/slang-token.cpp @@ -1,19 +1,19 @@ // slang-token.cpp #include "slang-token.h" -//#include <assert.h> +// #include <assert.h> -namespace Slang { +namespace Slang +{ char const* TokenTypeToString(TokenType type) { - switch( type ) + switch (type) { - default: - SLANG_ASSERT(!"unexpected"); - return "<uknown>"; + default: SLANG_ASSERT(!"unexpected"); return "<uknown>"; -#define TOKEN(NAME, DESC) case TokenType::NAME: return DESC; +#define TOKEN(NAME, DESC) \ + case TokenType::NAME: return DESC; #include "slang-token-defs.h" } } |
