Introduce a typedef keyword.

This commit is contained in:
David Anderson
2014-08-03 21:51:34 -07:00
parent 09edda93ad
commit ad376ff0b8
20 changed files with 172 additions and 47 deletions
+2 -2
View File
@@ -357,7 +357,7 @@ native Call_Cancel();
* @param numParams Number of parameters passed to the native.
* @return Value for the native call to return.
*/
functag public int NativeCall(Handle:plugin, numParams);
typedef NativeCall = function int (Handle plugin, int numParams);
/**
* Creates a dynamic native. This should only be called in AskPluginLoad(), or
@@ -508,7 +508,7 @@ native FormatNativeString(out_param,
* @param data Data passed to the RequestFrame native.
* @noreturn
*/
functag public void RequestFrameCallback(any:data);
typedef RequestFrameCallback = function void (any data);
/**
* Creates a single use Next Frame hook.