Auto-generate files after cl/613290255
diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index 34b8689..a603770 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h
@@ -342,6 +342,12 @@ #define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init #endif +#ifdef UPB_TRACING_ENABLED +#ifdef NDEBUG +error UPB_TRACING_ENABLED Tracing should be disabled in production builds +#endif +#endif + #ifndef UPB_BASE_STATUS_H_ #define UPB_BASE_STATUS_H_ @@ -1488,11 +1494,16 @@ uint8_t UPB_PRIVATE(dense_below); uint8_t UPB_PRIVATE(table_mask); uint8_t UPB_PRIVATE(required_count); // Required fields have the low hasbits. +#ifdef UPB_TRACING_ENABLED + const char* UPB_PRIVATE(full_name); +#endif +#ifdef UPB_FASTTABLE_ENABLED // To statically initialize the tables of variable length, we need a flexible // array member, and we need to compile in gnu99 mode (constant initialization // of flexible array members is a GNU extension, not in C99 unfortunately. _upb_FastTable_Entry UPB_PRIVATE(fasttable)[]; +#endif }; // LINT.ThenChange(//depot/google3/third_party/upb/bits/typescript/mini_table.ts) @@ -1585,6 +1596,13 @@ return (1ULL << n) - 1; } +#ifdef UPB_TRACING_ENABLED +UPB_INLINE const char* upb_MiniTable_FullName( + const struct upb_MiniTable* mini_table) { + return mini_table->UPB_PRIVATE(full_name); +} +#endif + #ifdef __cplusplus } /* extern "C" */ #endif