Add RequestFrame native for one-off frame actions (bug 5965, r=dvander).

This commit is contained in:
Kyle Sanderson
2013-10-29 22:10:40 -04:00
parent 0775976165
commit e01fc5e697
2 changed files with 77 additions and 0 deletions
+17
View File
@@ -492,3 +492,20 @@ native FormatNativeString(out_param,
&written=0,
String:out_string[]="",
const String:fmt_string[]="");
/**
* Defines a RequestFrame Callback.
*
* @param data Data passed to the RequestFrame native.
* @noreturn
*/
functag public RequestFrameCallback(any:data);
/**
* Creates a single use Next Frame hook.
*
* @param Function Function to call on the next frame.
* @param data Value to be passed on the invocation of the Function.
* @noreturn
*/
native RequestFrame(RequestFrameCallback:Function, any:data=0);