Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eProsima/dds-types-test
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bebeb2862ebabf6adb7d96e1afaaa231d284bb6f
Choose a base ref
...
head repository: eProsima/dds-types-test
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ea70762b65475894689057f408864eb8bb04f5ed
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 5, 2024

  1. New case for default union discriminator value (#32)

    * Refs #21222. New case for default discriminator value
    
    Signed-off-by: Ricardo González Moreno <[email protected]>
    
    * Refs #21222. Documentation
    
    Signed-off-by: Ricardo González Moreno <[email protected]>
    
    ---------
    
    Signed-off-by: Ricardo González Moreno <[email protected]>
    richiware authored Jul 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8b4199d View commit details

Commits on Jul 24, 2024

  1. Copy the full SHA
    ea70762 View commit details
Showing with 20 additions and 0 deletions.
  1. +20 −0 IDL/unions.idl
20 changes: 20 additions & 0 deletions IDL/unions.idl
Original file line number Diff line number Diff line change
@@ -497,3 +497,23 @@ struct UnionSeveralFieldsWithDefault
{
Union_Several_Fields_With_Default var_union_several_fields_with_default;
};

//! Test case for union discriminator's @default annotation.
union DefaultAnnotation switch (@default(0) long)
{
case 0:
octet a;
case 1:
short b;
default:
long c;
};

//! Test case for union discriminator's @default annotation with external value.
union DefaultAnnotationExternalValue switch (@default(2) long)
{
case 0:
octet a;
case 1:
short b;
};