From 2d6f3784a8c0dde32cb8bf05f92a97be5831f001 Mon Sep 17 00:00:00 2001 From: Henrik Rentz-Reichert Date: Mon, 18 Apr 2016 10:34:21 +0200 Subject: Bug 491885 - add generator option that allows to change the main name https://bugs.eclipse.org/bugs/show_bug.cgi?id=491885 Change-Id: I4c138449eab8bd8a21bf6373869a2afdc4d6eb82 --- .../src/org/eclipse/etrice/generator/c/gen/NodeRunnerGen.xtend | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c') diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/NodeRunnerGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/NodeRunnerGen.xtend index 53ac1a14e..3e56fdcd3 100644 --- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/NodeRunnerGen.xtend +++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/NodeRunnerGen.xtend @@ -69,11 +69,11 @@ class NodeRunnerGen { #include "osal/etPlatformLifecycle.h" /** - * main function - * creates component and starts and stops the lifecycle + * «Main.getSettings.mainMethodName» function + * creates components and starts and stops the lifecycle */ - int main(int argc, char** argv) { + int «Main.getSettings.mainMethodName»(int argc, char** argv) { etBool runAsTest = ET_FALSE; #ifdef ET_DO_NOT_USE_ARGC_ARGV -- cgit v1.2.3