/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/exceptions/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #include "thrift/compiler/test/fixtures/exceptions/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<::cpp2::Fiery>::name = "Fiery"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Fiery>::fields_names = { { "message"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Fiery>::fields_ids = { { 1, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Fiery>::fields_types = { { TType::T_STRING, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Fiery>::storage_names = { { "__fbthrift_field_message"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Fiery>::isset_indexes = { { -1, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::Serious>::name = "Serious"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Serious>::fields_names = { { "sonnet"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Serious>::fields_ids = { { 1, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Serious>::fields_types = { { TType::T_STRING, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Serious>::storage_names = { { "__fbthrift_field_sonnet"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Serious>::isset_indexes = { { 0, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::ComplexFieldNames>::name = "ComplexFieldNames"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ComplexFieldNames>::fields_names = { { "error_message"sv, "internal_error_message"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ComplexFieldNames>::fields_ids = { { 1, 2, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ComplexFieldNames>::fields_types = { { TType::T_STRING, TType::T_STRING, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ComplexFieldNames>::storage_names = { { "__fbthrift_field_error_message"sv, "__fbthrift_field_internal_error_message"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ComplexFieldNames>::isset_indexes = { { 0, 1, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::CustomFieldNames>::name = "CustomFieldNames"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::CustomFieldNames>::fields_names = { { "error_message"sv, "internal_error_message"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::CustomFieldNames>::fields_ids = { { 1, 2, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::CustomFieldNames>::fields_types = { { TType::T_STRING, TType::T_STRING, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::CustomFieldNames>::storage_names = { { "__fbthrift_field_error_message"sv, "__fbthrift_field_internal_error_message"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::CustomFieldNames>::isset_indexes = { { 0, 1, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::ExceptionWithPrimitiveField>::name = "ExceptionWithPrimitiveField"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithPrimitiveField>::fields_names = { { "message"sv, "error_code"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithPrimitiveField>::fields_ids = { { 1, 2, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithPrimitiveField>::fields_types = { { TType::T_STRING, TType::T_I32, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithPrimitiveField>::storage_names = { { "__fbthrift_field_message"sv, "__fbthrift_field_error_code"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithPrimitiveField>::isset_indexes = { { 0, 1, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::ExceptionWithStructuredAnnotation>::name = "ExceptionWithStructuredAnnotation"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithStructuredAnnotation>::fields_names = { { "message_field"sv, "error_code"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithStructuredAnnotation>::fields_ids = { { 1, 2, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithStructuredAnnotation>::fields_types = { { TType::T_STRING, TType::T_I32, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithStructuredAnnotation>::storage_names = { { "__fbthrift_field_message_field"sv, "__fbthrift_field_error_code"sv, }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::ExceptionWithStructuredAnnotation>::isset_indexes = { { 0, 1, }}; THRIFT_DATA_MEMBER const std::string_view TStructDataStorage<::cpp2::Banal>::name = "Banal"; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Banal>::fields_names = { { }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Banal>::fields_ids = { { }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Banal>::fields_types = { { }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Banal>::storage_names = { { }}; THRIFT_DATA_MEMBER const std::array TStructDataStorage<::cpp2::Banal>::isset_indexes = { { }}; } // namespace thrift } // namespace apache