Skip to content
Snippets Groups Projects
Commit a771db44 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

AVATAR code generator: Update on function execution

parent 3f086eb9
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@ OPT = -O1 -pthread
# Solaris
#LOPT = -O1 -pthread -ldl -lnsl -lsocket
#Linux
LOPT = -O1 -pthread -ldl -lrt
LOPT_UNIX = -O1 -pthread -ldl -lrt
LOPT_MAC = -O1 -pthread -ldl
LOPT = $(LOPT_MAC)
LOPT = $(LOPT_UNIX)
DEBUG = -g
OTHER = -Wall
......
SRCS = generated_src/main.c generated_src/Block0.c
\ No newline at end of file
SRCS = generated_src/main.c generated_src/RemotelyControlledMicrowave.c generated_src/RemoteControl.c generated_src/MicroWaveOven.c generated_src/Bell.c generated_src/ControlPanel.c generated_src/Controller.c generated_src/Magnetron.c generated_src/Door.c generated_src/WirelessInterface.c
\ No newline at end of file
......@@ -243,6 +243,10 @@ public class AVATAR2CPOSIX {
}
}
list = am.getListOfReturnAttributes();
if (list.size() != 0) {
ret += "return 0;" + CR;
}
ret += "}" + CR + CR;
}
_taskFile.addToMainCode(ret + CR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment