Added get_orig_retval for retrieving the original return value of an engine function

Reformatted comments in fakemeta include files so they look a bit neater
This commit is contained in:
Scott Ehlert
2006-04-17 16:59:37 +00:00
parent 82a739a95e
commit b57c752b1c
3 changed files with 243 additions and 232 deletions

View File

@ -52,6 +52,15 @@ native unregister_forward(_forwardType, registerId, post=0);
/* Returns data for metamod */
native forward_return(type,{Float,Sql,Result,_}:...);
/* Returns the original return value of an engine function.
* This is only valid in forwards that were registered as post.
*
* get_orig_retval() - no params, retrieves integer return value
* get_orig_retval(&Float:value) - retrieves float return value by reference
* get_orig_retval(value[], len) - retrives string return value
*/
native get_orig_retval({Float,_}:...)
native engfunc(type,{Float,Sql,Result,_}:...);
native dllfunc(type,{Float,Sql,Result,_}:...);