Allow execute forwards without need to create variable for returned value (#382)

We don't need to create variable to store value returned by forward when we ignore it.
This commit is contained in:
Karol Szuster 2016-09-01 10:37:14 +02:00 committed by Vincent Herbet
parent 732a05dde0
commit e95099817b

View File

@ -3146,7 +3146,7 @@ native PrepareArray(const array[], size, copyback = 0);
* @note Passing arrays requires them to be prepared using PrepareArray()
*
* @param forward_handle Forward handle
* @param ret Variable to store return value in
* @param ret Optional variable to store return value in
* @param ... Variable number of parameters to pass through
*
* @return 1 on success, 0 if forward can't be executed
@ -3154,7 +3154,7 @@ native PrepareArray(const array[], size, copyback = 0);
* of parameters that the forward was declared with,
* an error is thrown.
*/
native ExecuteForward(forward_handle, &ret, any:...);
native ExecuteForward(forward_handle, &ret = 0, any:...);
/**
* Destroys and deallocates a forward.