fixed up a callfunc issue and added copyback parameter

This commit is contained in:
David Anderson
2006-09-10 02:30:10 +00:00
parent 418efa4088
commit 77e4d85002
3 changed files with 47 additions and 14 deletions

View File

@ -649,11 +649,16 @@ native get_func_id(const funcName[], pluginId = -1);
* can be modified by the called function.
*/
native callfunc_push_int(value);
native callfunc_push_str(VALUE[]);
native callfunc_push_float(Float: value);
native callfunc_push_intrf(&value);
native callfunc_push_floatrf(& Float: value);
native callfunc_push_array(VALUE[], array_size);
/* If copyback is 1 (default), any changes are copied back.
* Note that this will defy the 'const' specifier for push_str(),
* which is only kept for special backwards compatibility.
*/
native callfunc_push_str(const VALUE[], bool:copyback=true);
native callfunc_push_array(VALUE[], array_size, bool:copyback=true);
/* Make the actual call.
* Return value of the function called. */