Update compiler and includes to version 1.7.0.
This commit is contained in:
Vendored
+12
-4
@@ -36,9 +36,9 @@
|
||||
#define _handles_included
|
||||
|
||||
/**
|
||||
* Handle helper macros.
|
||||
* Preset Handle values.
|
||||
*/
|
||||
enum Handle
|
||||
enum Handle: // Tag disables introducing "Handle" as a symbol.
|
||||
{
|
||||
INVALID_HANDLE = 0,
|
||||
};
|
||||
@@ -52,10 +52,9 @@ enum Handle
|
||||
* sure you read the documentation on whatever provided the Handle.
|
||||
*
|
||||
* @param hndl Handle to close.
|
||||
* @return True if successful, false if not closeable.
|
||||
* @error Invalid handles will cause a run time error.
|
||||
*/
|
||||
native bool:CloseHandle(Handle:hndl);
|
||||
native CloseHandle(Handle:hndl);
|
||||
|
||||
/**
|
||||
* Clones a Handle. When passing handles in between plugins, caching handles
|
||||
@@ -76,6 +75,15 @@ native bool:CloseHandle(Handle:hndl);
|
||||
*/
|
||||
native Handle:CloneHandle(Handle:hndl, Handle:plugin=INVALID_HANDLE);
|
||||
|
||||
/**
|
||||
* Helper for object-oriented syntax.
|
||||
*/
|
||||
methodmap Handle __nullable__
|
||||
{
|
||||
public Close() = CloseHandle;
|
||||
public ~Handle() = CloseHandle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do not use this function. Returns if a Handle and its contents
|
||||
* are readable, whereas INVALID_HANDLE only checks for the absence
|
||||
|
||||
Reference in New Issue
Block a user