Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2020-06-24 09:32:39 +0000
committerGerrit Code Review @ Eclipse.org2020-06-24 09:32:39 +0000
commitb7b0f5ca67a730527acb2660f876190330c23353 (patch)
treea535c9292351015e09a822b8c2611c76fa6a3f20
parent605b02f9f248642352d892324f4ce9024cd86e22 (diff)
parent4031454d11b1f461776e78ce374329ef28cf071b (diff)
downloadorg.eclipse.etrice-b7b0f5ca67a730527acb2660f876190330c23353.tar.gz
org.eclipse.etrice-b7b0f5ca67a730527acb2660f876190330c23353.tar.xz
org.eclipse.etrice-b7b0f5ca67a730527acb2660f876190330c23353.zip
Merge "[modellib.c] update of experimental PLogger"
-rw-r--r--runtime/org.eclipse.etrice.modellib.c/model/etrice/api/logger.room20
1 files changed, 11 insertions, 9 deletions
diff --git a/runtime/org.eclipse.etrice.modellib.c/model/etrice/api/logger.room b/runtime/org.eclipse.etrice.modellib.c/model/etrice/api/logger.room
index 2ba153eab..02aad87f0 100644
--- a/runtime/org.eclipse.etrice.modellib.c/model/etrice/api/logger.room
+++ b/runtime/org.eclipse.etrice.modellib.c/model/etrice/api/logger.room
@@ -25,10 +25,6 @@ RoomModel etrice.api.logger {
* ----
*/
ProtocolClass PLogger {
- usercode3 '''
- #include <stdarg.h>
- extern void PLogging_internal_logF();
- '''
conjugated PortClass
{
@@ -36,19 +32,25 @@ RoomModel etrice.api.logger {
* Logs a simple message. Appends line separator.
*/
Operation log(message: char ref) '''
- logF(message, NULL);
+ // TODO call etLogger
'''
/**
* Logs a formatted message with arguments. Appends line separator.
*/
Operation logF(format: char ref, args: voidType varargs) '''
- va_list argptr;
- va_start(argptr, format);
// TODO call etLogger
- PLogger_internal_logF(format, argptr);
- va_end(argptr);
'''
}
}
+
+ /** Simple protocol to flush logging. */
+ ProtocolClass PLoggerFlush {
+ incoming {
+ Message flush()
+ }
+ outgoing {
+ Message done()
+ }
+ }
} \ No newline at end of file

Back to the top