Update compiler and includes to version 1.7.0.

This commit is contained in:
Richard Helgeby
2015-03-21 15:43:24 +01:00
parent 743d17e05a
commit 5ec3694535
54 changed files with 4087 additions and 1599 deletions
+12 -4
View File
@@ -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