Update spcomp and includes to latest 1.10-fork
disable warning 241: Array-based enum structs will be removed in 1.11
This commit is contained in:
Vendored
+38
-12
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* vim: set ts=4 :
|
||||
* =============================================================================
|
||||
* SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
|
||||
* SourceMod (C)2004-2018 AlliedModders LLC. All rights reserved.
|
||||
* =============================================================================
|
||||
*
|
||||
* This file is part of the SourceMod/SourcePawn SDK.
|
||||
@@ -38,28 +38,54 @@
|
||||
/**
|
||||
* ONLY AVAILABLE ON WINDOWS RIGHT NOW K.
|
||||
*/
|
||||
|
||||
|
||||
methodmap Profiler < Handle
|
||||
{
|
||||
// Creates a new profile object. The Handle must be freed
|
||||
// using delete or CloseHandle().
|
||||
//
|
||||
// @return A new Profiler Handle.
|
||||
public native Profiler();
|
||||
|
||||
// Starts a cycle for profiling.
|
||||
public native void Start();
|
||||
|
||||
// Stops a cycle for profiling.
|
||||
//
|
||||
// @error Profiler was never started.
|
||||
public native void Stop();
|
||||
|
||||
// Returns the amount of high-precision time in seconds
|
||||
// that passed during the profiler's last start/stop
|
||||
// cycle.
|
||||
//
|
||||
// @return Time elapsed in seconds.
|
||||
property float Time {
|
||||
public native get();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a new profile object. The Handle must be freed
|
||||
* using CloseHandle().
|
||||
* using delete or CloseHandle().
|
||||
*
|
||||
* @return Handle to the profiler object.
|
||||
* @return Handle to the profiler object.
|
||||
*/
|
||||
native Handle CreateProfiler();
|
||||
native Profiler CreateProfiler();
|
||||
|
||||
/**
|
||||
* Starts profiling.
|
||||
*
|
||||
* @param prof Profiling object.
|
||||
* @error Invalid Handle.
|
||||
* @param prof Profiling object.
|
||||
* @error Invalid Handle.
|
||||
*/
|
||||
native void StartProfiling(Handle prof);
|
||||
|
||||
/**
|
||||
* Stops profiling.
|
||||
*
|
||||
* @param prof Profiling object.
|
||||
* @error Invalid Handle or profiling was never started.
|
||||
* @param prof Profiling object.
|
||||
* @error Invalid Handle or profiling was never started.
|
||||
*/
|
||||
native void StopProfiling(Handle prof);
|
||||
|
||||
@@ -68,9 +94,9 @@ native void StopProfiling(Handle prof);
|
||||
* that passed during the profiler's last start/stop
|
||||
* cycle.
|
||||
*
|
||||
* @param prof Profiling object.
|
||||
* @return Time elapsed in seconds.
|
||||
* @error Invalid Handle.
|
||||
* @param prof Profiling object.
|
||||
* @return Time elapsed in seconds.
|
||||
* @error Invalid Handle.
|
||||
*/
|
||||
native float GetProfilerTime(Handle prof);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user