mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 22:35:31 +03:00
Fixed GCC error in ivscript.h
This commit is contained in:
parent
2ca2d7c80f
commit
8cf06b2865
@ -1605,6 +1605,10 @@ typedef CScriptScopeT<> CScriptScope;
|
|||||||
#define FOR_EACH_VEC_PTR( vecName, iteratorName ) \
|
#define FOR_EACH_VEC_PTR( vecName, iteratorName ) \
|
||||||
for ( int iteratorName = 0; iteratorName < (vecName)->Count(); iteratorName++ )
|
for ( int iteratorName = 0; iteratorName < (vecName)->Count(); iteratorName++ )
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
static void __UpdateScriptHooks( HSCRIPT hooksList );
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Keeps track of which events and scopes are hooked without polling this from the script VM on each request.
|
// Keeps track of which events and scopes are hooked without polling this from the script VM on each request.
|
||||||
@ -1654,12 +1658,6 @@ public:
|
|||||||
return scopeMap->Find( g_pScriptVM->HScriptToRaw( hScope ) ) != scopeMap->InvalidIndex();
|
return scopeMap->Find( g_pScriptVM->HScriptToRaw( hScope ) ) != scopeMap->InvalidIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __UpdateScriptHooks( HSCRIPT hooksList )
|
|
||||||
{
|
|
||||||
extern CScriptHookManager &GetScriptHookManager();
|
|
||||||
GetScriptHookManager().Update( hooksList );
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// On VM init, registers script func and caches the hook func.
|
// On VM init, registers script func and caches the hook func.
|
||||||
//
|
//
|
||||||
@ -1876,6 +1874,11 @@ inline CScriptHookManager &GetScriptHookManager()
|
|||||||
return g_ScriptHookManager;
|
return g_ScriptHookManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void __UpdateScriptHooks( HSCRIPT hooksList )
|
||||||
|
{
|
||||||
|
GetScriptHookManager().Update( hooksList );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Function bindings allow script functions to run C++ functions.
|
// Function bindings allow script functions to run C++ functions.
|
||||||
|
Loading…
Reference in New Issue
Block a user