diff --git a/build.gradle b/build.gradle index 0a821fd..df1c60a 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ apply plugin: 'java-library' apply plugin: 'eclipse' // Eclipse integration -version = '2.0.1' +version = '2.0.2' description = 'Build script with all necessary tasks to compile and test MicroXRCEDDSGen' repositories { diff --git a/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg b/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg index 7e667b0..30c3e7c 100644 --- a/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg +++ b/src/main/resources/com/eprosima/uxr/idl/templates/TypesHeader.stg @@ -96,6 +96,8 @@ typedef enum $enum.name$ { $enum.members:{$it.name$}; separator=",\n"$ } $enum.name$; + +typedef uint32_t $enum.name$_cdr; >> /***** Utils *****/ @@ -119,6 +121,8 @@ $member.typecode.contentTypeCode.cTypename$ $member.name$; $endif$ $elseif(member.typecode.isType_f)$ $member.typecode.cTypename$ $member.name$$member.typecode.cTypeDimensions$; +$elseif(member.typecode.isType_c)$ +$member.typecode.cTypename$_cdr $member.name$; $else$ $member.typecode.cTypename$ $member.name$; $endif$