mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-19 08:52:34 +01:00
msvc/win32 compatibility
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40120
This commit is contained in:
parent
5744176211
commit
b5b686a519
@ -11,7 +11,7 @@
|
||||
#ifndef _INCLUDE_SMM_LIST_H
|
||||
#define _INCLUDE_SMM_LIST_H
|
||||
|
||||
#include <malloc.h>
|
||||
#include <new>
|
||||
|
||||
namespace SourceHook
|
||||
{
|
||||
|
@ -134,7 +134,7 @@ namespace SourceHook
|
||||
HA_Unregister //!< Clear the saved pointer
|
||||
};
|
||||
|
||||
class IHookManagerInfo;
|
||||
struct IHookManagerInfo;
|
||||
|
||||
/**
|
||||
* @brief Pointer to hook manager interface function
|
||||
|
@ -15,14 +15,17 @@ namespace
|
||||
{
|
||||
Hmm *m_This;
|
||||
int m_Int;
|
||||
Hmm(const Hmm &other) : m_This(this), m_Int(other.m_Int)
|
||||
Hmm(const Hmm &other) : m_Int(other.m_Int)
|
||||
{
|
||||
m_This = this;
|
||||
}
|
||||
Hmm(int i) : m_This(this), m_Int(i)
|
||||
Hmm(int i) : m_Int(i)
|
||||
{
|
||||
m_This = this;
|
||||
}
|
||||
Hmm() : m_This(this), m_Int(0)
|
||||
Hmm() : m_Int(0)
|
||||
{
|
||||
m_This = this;
|
||||
}
|
||||
void operator = (const Hmm &other)
|
||||
{
|
||||
@ -134,12 +137,13 @@ namespace
|
||||
|
||||
// Find
|
||||
int ver = 1;
|
||||
for (HashType::iterator iter = hash.begin(); iter != hash.end(); ++iter)
|
||||
HashType::iterator iter;
|
||||
for (iter = hash.begin(); iter != hash.end(); ++iter)
|
||||
CHECK_COND(iter->key == ver && iter->val == (ver++) + 5000, "Part2");
|
||||
|
||||
CHECK_COND(ver == mymax+1, "Part2.1");
|
||||
|
||||
HashType::iterator iter = hash.find(300);
|
||||
iter = hash.find(300);
|
||||
CHECK_COND(iter != hash.end() && iter->val == 300+5000, "Part3.1");
|
||||
iter = hash.find(mymax+200);
|
||||
CHECK_COND(iter == hash.end(), "Part3.2");
|
||||
|
Loading…
x
Reference in New Issue
Block a user