/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/tablebased/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #include "thrift/compiler/test/fixtures/tablebased/gen-cpp2/module_data.h" #include FOLLY_CLANG_DISABLE_WARNING("-Wunused-macros") #if defined(__GNUC__) && defined(__linux__) && !FOLLY_MOBILE // These attributes are applied to the static data members to ensure that they // are not stripped from the compiled binary, in order to keep them available // for use by debuggers at runtime. // // The "used" attribute is required to ensure the compiler always emits unused // data. // // The "section" attribute is required to stop the linker from stripping used // data. It works by forcing all of the data members (both used and unused ones) // into the same section. As the linker strips data on a per-section basis, it // is then unable to remove unused data without also removing used data. // This has a similar effect to the "retain" attribute, but works with older // toolchains. #define THRIFT_DATA_MEMBER [[gnu::used]] [[gnu::section(".rodata.thrift.data")]] #else #define THRIFT_DATA_MEMBER #endif namespace apache { namespace thrift { THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::test::fixtures::tablebased::TrivialTypesStruct>::name = "TrivialTypesStruct"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::TrivialTypesStruct>::fields_names = { { "fieldA"sv, "fieldB"sv, "fieldC"sv, "fieldD"sv, "fieldE"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::TrivialTypesStruct>::fields_ids = { { 1, 2, 3, 4, 5, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::TrivialTypesStruct>::fields_types = { { TType::T_I32, TType::T_STRING, TType::T_STRING, TType::T_STRING, TType::T_I32, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::TrivialTypesStruct>::storage_names = { { "__fbthrift_field_fieldA"sv, "__fbthrift_field_fieldB"sv, "__fbthrift_field_fieldC"sv, "__fbthrift_field_fieldD"sv, "__fbthrift_field_fieldE"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::TrivialTypesStruct>::isset_indexes = { { 0, 1, 2, 3, 4, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::test::fixtures::tablebased::ContainerStruct>::name = "ContainerStruct"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ContainerStruct>::fields_names = { { "fieldA"sv, "fieldB"sv, "fieldC"sv, "fieldD"sv, "fieldE"sv, "fieldF"sv, "fieldG"sv, "fieldH"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ContainerStruct>::fields_ids = { { 12, 2, 3, 4, 5, 6, 7, 8, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ContainerStruct>::fields_types = { { TType::T_LIST, TType::T_LIST, TType::T_LIST, TType::T_LIST, TType::T_LIST, TType::T_SET, TType::T_MAP, TType::T_LIST, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ContainerStruct>::storage_names = { { "__fbthrift_field_fieldA"sv, "__fbthrift_field_fieldB"sv, "__fbthrift_field_fieldC"sv, "__fbthrift_field_fieldD"sv, "__fbthrift_field_fieldE"sv, "__fbthrift_field_fieldF"sv, "__fbthrift_field_fieldG"sv, "__fbthrift_field_fieldH"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ContainerStruct>::isset_indexes = { { 0, 1, 2, 3, 4, 5, 6, 7, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::test::fixtures::tablebased::ExampleUnion>::name = "ExampleUnion"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ExampleUnion>::fields_names = { { "fieldA"sv, "fieldB"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ExampleUnion>::fields_ids = { { 1, 2, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ExampleUnion>::fields_types = { { TType::T_STRUCT, TType::T_STRUCT, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ExampleUnion>::storage_names = { { "fieldA"sv, "fieldB"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::test::fixtures::tablebased::ExampleUnion>::isset_indexes = { { 0, 1, }}; } // namespace thrift } // namespace apache