Merge pull request #268 from Arkshine/fix/handle-name-conflict

Rename Handle class to avoid name collision in mac
This commit is contained in:
Vincent Herbet 2015-07-21 00:23:13 +02:00
commit 2162059352
13 changed files with 20 additions and 20 deletions

View File

@ -175,7 +175,7 @@ private:
};
};
extern Handle<CDataPack> DataPackHandles;
extern NativeHandle<CDataPack> DataPackHandles;
extern AMX_NATIVE_INFO g_DatapackNatives[];
#endif //_INCLUDE_SOURCEMOD_CDATAPACK_H_

View File

@ -14,7 +14,7 @@
// class ClEvent
// *****************************************************
Handle<EventHook> EventHandles;
NativeHandle<EventHook> EventHandles;
EventsMngr::ClEvent::ClEvent(CPluginMngr::CPlugin* plugin, int func, int flags)
{

View File

@ -158,6 +158,6 @@ struct EventHook
EventsMngr::ClEvent *m_event;
};
extern Handle<EventHook> EventHandles;
extern NativeHandle<EventHook> EventHandles;
#endif //__CEVENTS_H__

View File

@ -29,7 +29,7 @@
#include "CDataPack.h"
Handle<CDataPack> DataPackHandles;
NativeHandle<CDataPack> DataPackHandles;
static cell AMX_NATIVE_CALL CreateDataPack(AMX* amx, cell* params)
{

View File

@ -11,7 +11,7 @@
#include "datastructs.h"
#include <am-utility.h>
Handle<CellArray> ArrayHandles;
NativeHandle<CellArray> ArrayHandles;
// Array:ArrayCreate(cellsize=1, reserved=32);
static cell AMX_NATIVE_CALL ArrayCreate(AMX* amx, cell* params)

View File

@ -185,6 +185,6 @@ private:
size_t m_Size;
};
extern Handle<CellArray> ArrayHandles;
extern NativeHandle<CellArray> ArrayHandles;
#endif

View File

@ -11,7 +11,7 @@
#include "amxmodx.h"
#include "CGameConfigs.h"
Handle<GameConfigNative> GameConfigHandle;
NativeHandle<GameConfigNative> GameConfigHandle;
// native GameConfig:LoadGameConfigFile(const file[]);
static cell AMX_NATIVE_CALL LoadGameConfigFile(AMX *amx, cell *params)

View File

@ -15,4 +15,4 @@ struct GameConfigNative
IGameConfig *m_config;
};
extern Handle<GameConfigNative> GameConfigHandle;
extern NativeHandle<GameConfigNative> GameConfigHandle;

View File

@ -7,8 +7,8 @@
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
// https://alliedmods.net/amxmodx-license
#ifndef _NATIVES_HANDLES_H_
#define _NATIVES_HANDLES_H_
#ifndef _NATIVES_NATIVES_HANDLES_H_
#define _NATIVES_NATIVES_HANDLES_H_
#include <am-vector.h>
@ -18,7 +18,7 @@
// on accident.
template <typename T>
class Handle
class NativeHandle
{
private:
@ -26,8 +26,8 @@ class Handle
public:
Handle() {}
~Handle()
NativeHandle() {}
~NativeHandle()
{
this->clear();
}
@ -113,4 +113,4 @@ class Handle
}
};
#endif // _NATIVE_HANDLES_H_
#endif // _NATIVES_NATIVES_HANDLES_H_

View File

@ -11,7 +11,7 @@
#include "textparse.h"
Handle<ParseInfo> TextParsersHandles;
NativeHandle<ParseInfo> TextParsersHandles;
cell createParser()
{

View File

@ -132,6 +132,6 @@ public:
int handle;
};
extern Handle<ParseInfo> TextParsersHandles;
extern NativeHandle<ParseInfo> TextParsersHandles;
#endif // _INCLUDE_TEXTPARSE_H_

View File

@ -9,8 +9,8 @@
#include "trie_natives.h"
Handle<CellTrie> TrieHandles;
Handle<TrieSnapshot> TrieSnapshotHandles;
NativeHandle<CellTrie> TrieHandles;
NativeHandle<TrieSnapshot> TrieSnapshotHandles;
// native Trie:TrieCreate();
static cell AMX_NATIVE_CALL TrieCreate(AMX *amx, cell *params)

View File

@ -159,8 +159,8 @@ struct TrieSnapshot
BaseStringTable strings;
};
extern Handle<CellTrie> TrieHandles;
extern Handle<TrieSnapshot> TrieSnapshotHandles;
extern NativeHandle<CellTrie> TrieHandles;
extern NativeHandle<TrieSnapshot> TrieSnapshotHandles;
extern AMX_NATIVE_INFO trie_Natives[];
#endif