Function _ret() Foundation

Sets the return value of the function to NIL.

Syntax
BOOL _ret(XppParamList pList);
Parameters
XppParamList pList
Pointer to the Xbase++ parameter list for the function whose return value is being set.
Return

Always returns TRUE.

Description

_ret() is used to return a NIL value to Xbase++. Calling this function does not exit the function but merely sets the return value. After the call an access to other C-API functions except for _conRelease() is not allowed anymore and the function should return immediately.

To insure correct operation, a return value has always to be set. In Xbase++, NIL should always be returned for procedures, which are functions without return values.

Examples
/* 
Sets NIL as the return value and terminates the function. 
*/ 
#include <xpppar.h> 

_ret(<pList>); 
return; 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.