Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
index 5e4b83525..47ac9fe28 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
@@ -87,7 +87,7 @@ class DataClassGen {
««« TODO: do we need setters and getters for C and C++ ?
- «dc.operations.operationsDeclaration(dc.name)»
+ «dc.latestOperations.operationsDeclaration(dc.name)»
/* deep copy */
void «dc.name»_deepCopy(«dc.name»* source, «dc.name»* target);
@@ -167,15 +167,14 @@ class DataClassGen {
«dc.userCode(3)»
-««« TODO: do we need setters and getters for C and C++ ?
-
- «dc.operations.operationsImplementation(dc.name)»
+ ««« TODO: do we need setters and getters for C and C++ ?
+
+ «dc.latestOperations.operationsImplementation(dc.name)»
void «dc.name»_deepCopy(«dc.name»* source, «dc.name»* target) {
memcpy(target, source, sizeof(«dc.name»));
}
-
'''}

Back to the top