5c88803942
Error handling: Array now has sufficiently advanced error handling to remove most, if not all, disable_checks. Extention: With the metaprogramming techniques, new types can be added easily. Speed: With the new changes I've made to Judy, the Array module has far exceeded the speed of any traditional datatype
35 lines
737 B
C++
35 lines
737 B
C++
#include "amxxmodule.h"
|
|
#include "ComboArray.h"
|
|
|
|
extern AMX_NATIVE_INFO bintrie_exports[];
|
|
extern AMX_NATIVE_INFO bintrie_usage_exports[];
|
|
extern ComboArray MasterTrie;
|
|
|
|
extern AMX_NATIVE_INFO list_exports[];
|
|
extern AMX_NATIVE_INFO list_creation_exports[];
|
|
extern ComboArray MasterList;
|
|
|
|
extern AMX_NATIVE_INFO map_exports[];
|
|
extern AMX_NATIVE_INFO map_creation_exports[];
|
|
extern ComboArray MasterMap;
|
|
|
|
|
|
void OnAmxxAttach( void )
|
|
{
|
|
MF_AddNatives(bintrie_exports);
|
|
MF_AddNatives(bintrie_usage_exports);
|
|
|
|
MF_AddNatives(list_exports);
|
|
MF_AddNatives(list_creation_exports);
|
|
|
|
MF_AddNatives(map_exports);
|
|
MF_AddNatives(map_creation_exports);
|
|
|
|
}
|
|
|
|
void OnAmxxDetach( void )
|
|
{
|
|
MasterTrie.Clear();
|
|
MasterList.Clear();
|
|
MasterMap.Clear();
|
|
} |