Updated includes and spcomp to SourceMod 1.9
This commit is contained in:
Vendored
+5
-12
@@ -38,7 +38,7 @@
|
||||
/**
|
||||
* Preset Handle values.
|
||||
*/
|
||||
enum Handle: // Tag disables introducing "Handle" as a symbol.
|
||||
enum Handle // Tag disables introducing "Handle" as a symbol.
|
||||
{
|
||||
INVALID_HANDLE = 0,
|
||||
};
|
||||
@@ -54,7 +54,7 @@ enum Handle: // Tag disables introducing "Handle" as a symbol.
|
||||
* @param hndl Handle to close.
|
||||
* @error Invalid handles will cause a run time error.
|
||||
*/
|
||||
native CloseHandle(Handle:hndl);
|
||||
native void CloseHandle(Handle hndl);
|
||||
|
||||
/**
|
||||
* Clones a Handle. When passing handles in between plugins, caching handles
|
||||
@@ -73,16 +73,9 @@ native CloseHandle(Handle:hndl);
|
||||
* @return Handle on success, INVALID_HANDLE if not cloneable.
|
||||
* @error Invalid handles will cause a run time error.
|
||||
*/
|
||||
native Handle:CloneHandle(Handle:hndl, Handle:plugin=INVALID_HANDLE);
|
||||
native Handle CloneHandle(Handle hndl, Handle plugin=INVALID_HANDLE);
|
||||
|
||||
/**
|
||||
* Helper for object-oriented syntax.
|
||||
*/
|
||||
methodmap Handle __nullable__
|
||||
{
|
||||
public Close() = CloseHandle;
|
||||
public ~Handle() = CloseHandle;
|
||||
}
|
||||
using __intrinsics__.Handle;
|
||||
|
||||
/**
|
||||
* Do not use this function. Returns if a Handle and its contents
|
||||
@@ -101,4 +94,4 @@ methodmap Handle __nullable__
|
||||
* @return True if handle is valid, false otherwise.
|
||||
*/
|
||||
#pragma deprecated Do not use this function.
|
||||
native bool:IsValidHandle(Handle:hndl);
|
||||
native bool IsValidHandle(Handle hndl);
|
||||
|
||||
Reference in New Issue
Block a user