1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00

Update KeyValues.h (#252)

This commit is contained in:
A1m` 2024-06-02 23:30:16 +07:00 committed by GitHub
parent d9831d4429
commit d0a33e824c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
//========= Copyright <EFBFBD> 1996-2005, Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@ -24,6 +24,7 @@
#include "utlvector.h"
#include "Color.h"
#include "exprevaluator.h"
class IBaseFileSystem;
class CUtlBuffer;
@ -356,7 +357,7 @@ private:
KeyValues *m_pSub; // pointer to Start of a new sub key list
KeyValues *m_pChain;// Search here if it's not in our list
void* m_pExpressionGetSymbolProc;
GetSymbolProc_t m_pExpressionGetSymbolProc;
};
typedef KeyValues::AutoDelete KeyValuesAD;
@ -437,6 +438,10 @@ inline bool KeyValues::IsEmpty( int keySymbol )
return dat ? dat->IsEmpty( ) : true;
}
inline void KeyValues::SetExpressionHandler( GetSymbolProc_t pExpSymbolProc )
{
m_pExpressionGetSymbolProc = pExpSymbolProc;
}
//
// KeyValuesDumpContext and generic implementations