C Detailcode translation fails if strings with \r, \n are passed into operations or to messages
If a string with \n or \r is passed into an operation or to a port.message construct the detail code translation fails for all following port.message statements and invalid C-Code is generated.
ActorClass AGenFailer {
Structure {
usercode3 '''
static void dummyFn(char *str) {
// dummy
};
'''
SAP logger: PLogger
}
Behavior {
Operation dummyOp(str: string) '''
// noting to do here
'''
StateMachine {
State idle
Transition init0: initial -> idle {
action '''
logger.log("test1");
char *a = ("t\r"); // does not influence detail code completion
dummyFn("tt\n"); // does not influence detail code completion
dummyOp("tt\n"); // fails the detail code translation for all following messages
logger.log("A test string\r"); // fails the detail code translation for this and all following messages
logger.log("test");
'''
}
}
}
}