1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-30 19:52:17 +01:00

Correct spacing!

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40101
This commit is contained in:
David Anderson 2005-09-13 16:47:42 +00:00
parent ead774778f
commit 4f07756795
2 changed files with 24 additions and 0 deletions

View File

@ -6,6 +6,9 @@
#include <iostream>
#include <string>
#include <list>
#include <stdlib.h>
#include <time.h>
#include "sh_tinyhash.h"
#include "sourcehook_impl.h"
using namespace std;
@ -67,6 +70,24 @@ DO_TEST(ThisPtrOffs);
DO_TEST(PlugSys);
DO_TEST(Bail);
template <>
int SourceHook::HashFunction<int>(const int & k)
{
return k;
}
template <>
int SourceHook::Compare<int>(const int & v1, const int & v2)
{
if (v1 == v2)
return 0;
if (v1 < v2)
return -1;
if (v1 > v2)
return 1;
return 0;
}
int main(int argc, char *argv[])
{
std::string error;

View File

@ -274,6 +274,9 @@
<File
RelativePath="..\sh_string.h">
</File>
<File
RelativePath="..\sh_tinyhash.h">
</File>
<File
RelativePath="..\sh_vector.h">
</File>