Skip to content

Commit

Permalink
[ObjC] Document what there are unions with only one item.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 718977595
  • Loading branch information
thomasvl authored and copybara-github committed Jan 23, 2025
1 parent 5bcbf5c commit 7f7e5ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions objectivec/GPBDescriptor_PackagePrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@ typedef NS_OPTIONS(uint8_t, GPBExtensionOptions) {
typedef struct GPBExtensionDescription {
GPBGenericValue defaultValue;
const char *singletonName;
// Historically this had more than one entry, but the union name is referenced in the generated
// code so it can't be removed without breaking compatibility.
union {
Class clazz;
} extendedClass;
// Historically this had more than one entry, but the union name is referenced in the generated
// code so it can't be removed without breaking compatibility.
union {
Class clazz;
} messageOrGroupClass;
Expand Down

0 comments on commit 7f7e5ba

Please sign in to comment.