Renesas REJ10J1822-0101 Computer Hardware User Manual


 
Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 54 of 128
REJ10J1822-0101
6.2.3 When the Return Value is not Representable as a 4-Byte Integer
Format:
[RETEXT]Δ<type of the return value>Δ
<variable to hold the return value>=
Description:
By default, the return value is cast into UINT32 in the server stub and then transferred to the
client. This value is cast back into the original type in the client stub and is then returned.
When the return value is of the following types, however, the definition must have an RETEXT
directive because the default behavior above is not applicable in these cases.
64-bit integer
Floating point
Structure-type object
Union-type object
When a definition has an RETEXT directive, code will be generated such that a value is returned
from the server to the client by using the structure IOVEC.
Example:
Specification of a server function
double func(int par);
The function takes par as an input and returns a value of type double.
Definition of the server function
[RETEXT]double ret = func([IN DFLT]int par);