Add GetNativeFunction (bug 6200).
This commit is contained in:
parent
3fc05056b0
commit
2a46f8f881
@ -441,6 +441,7 @@ REGISTER_NATIVES(nativeNatives)
|
|||||||
{"GetNativeArray", GetNativeArray},
|
{"GetNativeArray", GetNativeArray},
|
||||||
{"GetNativeCell", GetNativeCell},
|
{"GetNativeCell", GetNativeCell},
|
||||||
{"GetNativeCellRef", GetNativeCellRef},
|
{"GetNativeCellRef", GetNativeCellRef},
|
||||||
|
{"GetNativeFunction", GetNativeCell},
|
||||||
{"GetNativeString", GetNativeString},
|
{"GetNativeString", GetNativeString},
|
||||||
{"GetNativeStringLength", GetNativeStringLength},
|
{"GetNativeStringLength", GetNativeStringLength},
|
||||||
{"FormatNativeString", FormatNativeString},
|
{"FormatNativeString", FormatNativeString},
|
||||||
|
@ -428,6 +428,15 @@ native SetNativeString(param, const String:source[], maxlength, bool:utf8=true,
|
|||||||
*/
|
*/
|
||||||
native any:GetNativeCell(param);
|
native any:GetNativeCell(param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a function pointer from a native parameter.
|
||||||
|
*
|
||||||
|
* @param param Parameter number, starting from 1.
|
||||||
|
* @return Function pointer at the given parameter number.
|
||||||
|
* @error Invalid parameter number, or calling from a non-native function.
|
||||||
|
*/
|
||||||
|
native Function GetNativeFunction(param);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a cell from a native parameter, by reference.
|
* Gets a cell from a native parameter, by reference.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user