浏览代码

added parenthesis for xtend

benjamin.schwertfeger@googlemail.com 12 年之前
父节点
当前提交
143a4ce1e9

+ 1 - 1
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/Naming.xtend

@@ -21,7 +21,7 @@ class Naming extends org.yakindu.sct.generator.c.Naming {
 	def cpp(String it) { it + ".cpp" }
 	
 	def abstractModule(ExecutionFlow it) {
-		'I'+module	
+		'I'+module()
 	}
 	
 	def iStatemachine() {

+ 4 - 4
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/StatemachineHeader.xtend

@@ -41,8 +41,8 @@ class StatemachineHeader extends Statemachine {
 	override statemachineHContent(ExecutionFlow it,  GeneratorEntry entry) '''
 		«entry.licenseText»
 		
-		#ifndef «module.define»_H_
-		#define «module.define»_H_
+		#ifndef «module().define»_H_
+		#define «module().define»_H_
 
 		#include "«typesModule.hpp»"
 		#include "«iStatemachine.hpp»"
@@ -53,7 +53,7 @@ class StatemachineHeader extends Statemachine {
 		/*! \file Header of the state machine '«name»'.
 		*/
 		
-		class «module» : «interfaceExtensions» {
+		class «module()» : «interfaceExtensions» {
 			
 			public:
 			
@@ -73,7 +73,7 @@ class StatemachineHeader extends Statemachine {
 				«statemachineTypeDecl»
 		};
 		
-		#endif /* «module.define»_H_ */
+		#endif /* «module().define»_H_ */
 	'''
 	
 	def getInterfaceExtensions(ExecutionFlow flow) {