Add IsNativeParamNullVector and IsNativeParamNullString natives

Lets plugins check if some other plugin passed NULL_VECTOR or
NULL_STRING to a native in the native callback.
This commit is contained in:
Peace-Maker
2017-08-25 23:23:07 +02:00
parent 9fa4ed8bac
commit 3de269946c
2 changed files with 70 additions and 0 deletions
+16
View File
@@ -465,6 +465,22 @@ native int GetNativeArray(int param, any[] local, int size);
*/
native int SetNativeArray(int param, const any[] local, int size);
/**
* Check if the native parameter is the NULL_VECTOR.
*
* @param param Parameter number, starting from 1.
* @return True if NULL_VECTOR, false otherwise.
*/
native bool IsNativeParamNullVector(int param);
/**
* Check if the native parameter is the NULL_STRING.
*
* @param param Parameter number, starting from 1.
* @return True if NULL_STRING, false otherwise.
*/
native bool IsNativeParamNullString(int param);
/**
* Formats a string using parameters from a native.
*