Skip to main content

callcontext::ReturnCall (obsolete)

Valid for: CANoe DE

Method Syntax

  • void callContext::ReturnCall(); // form 1
  • void callContext::ReturnCall(<Type> returnValue); // from 2

Description

Returns the call immediately, sending an answer to the caller. Note that many function calls require an answer per protocol even if the function has neither a return value nor an out parameter. Immediately means in effect after the current handler has been processed or when the current test procedures reaches a wait instruction, but at the same point of (simulation) time. You can optionally set the return value (if the function does not return void). This call is equivalent to callcontext::SetTimeToAnswer(0).

Parameters

  • returnValue: Return value for the call.

Return Values

—

Example

Programming with the Communication Concept (C#, Python and CAPL) • callcontext::DeferAnswer • callcontext::SetTimeToAnswer