mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 23:17:27 +00:00
Simplify declarations of x-macro FLATBUFFERS_TD (#5638)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
bcf1bd5c9e
commit
075e8d676b
@@ -139,14 +139,14 @@ class KotlinGenerator : public BaseGenerator {
|
||||
|
||||
static std::string GenTypeBasic(const BaseType &type) {
|
||||
// clang-format off
|
||||
static const char * const kotlin_typename[] = {
|
||||
#define FLATBUFFERS_TD(ENUM, IDLTYPE, \
|
||||
CTYPE, JTYPE, GTYPE, NTYPE, PTYPE, RTYPE, KTYPE) \
|
||||
#KTYPE,
|
||||
static const char * const kotlin_typename[] = {
|
||||
#define FLATBUFFERS_TD(ENUM, IDLTYPE, \
|
||||
CTYPE, JTYPE, GTYPE, NTYPE, PTYPE, RTYPE, KTYPE) \
|
||||
#KTYPE,
|
||||
FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD)
|
||||
#undef FLATBUFFERS_TD
|
||||
// clang-format on
|
||||
#undef FLATBUFFERS_TD
|
||||
};
|
||||
// clang-format on
|
||||
return kotlin_typename[type];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user