Skip to content

Commit

Permalink
New implementation for unions (#310)
Browse files Browse the repository at this point in the history
* Refs #19451. First implementation

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451. Fixes

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451. Remove not needed functions on template

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451. Remove unused template macros

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451.- Fix externals

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451.- Fix fixed_string

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451.- Fix warnings

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #19451.- Update submodule

Signed-off-by: Ricardo González Moreno <[email protected]>

---------

Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored and JLBuenoLopez committed Apr 1, 2024
1 parent 061b090 commit a2215d9
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 219 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/eprosima/fastcdr/idl/templates/FastCdrCommon.stg
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,13 @@ member_array_cstring_destructor(ctx, name, loopvar, dims) ::= <<$if(rest(dims))$
{
free(str);
}$endif$>>

member_default_init(member) ::= <%
$if(member.annotationDefault)$
{$member.annotationDefaultValue$}
$elseif(!member.annotationOptional && !member.annotationExternal)$
$if(member.typecode.initialValue)$
{$member.typecode.initialValue$}
$endif$
$endif$
%>
Loading

0 comments on commit a2215d9

Please sign in to comment.