mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
Added comparison functions
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40104
This commit is contained in:
parent
23595d677d
commit
62133463ac
@ -21,7 +21,6 @@
|
||||
|
||||
namespace SourceHook
|
||||
{
|
||||
|
||||
class String
|
||||
{
|
||||
public:
|
||||
|
@ -15,9 +15,26 @@
|
||||
*/
|
||||
|
||||
#include "sourcehook_impl.h"
|
||||
#include "sh_tinyhash.h"
|
||||
|
||||
namespace SourceHook
|
||||
{
|
||||
template<>
|
||||
SourceHook::HashFunction<int>(const int & k)
|
||||
{
|
||||
return k;
|
||||
}
|
||||
template<>
|
||||
SourceHook::Compare<int>(const int & k1, const int & k2)
|
||||
{
|
||||
if (k1 == k2)
|
||||
return 0;
|
||||
if (k1 > k2)
|
||||
return 1;
|
||||
if (k1 < k2)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
CSourceHookImpl::CSourceHookImpl()
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user