This is now const
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40318
This commit is contained in:
parent
232e027137
commit
c6b77c8cc1
@ -75,7 +75,9 @@ namespace SourceMod
|
||||
SMInterface **pIface) =0;
|
||||
|
||||
/**
|
||||
* @brief Adds a list of natives to the global native pool.
|
||||
* @brief Adds a list of natives to the global native pool, to be bound on plugin load.
|
||||
* NOTE: Adding natives currently does not bind them to any loaded plugins.
|
||||
* You must manually bind late natives.
|
||||
*
|
||||
* @param token Identity token of parent object.
|
||||
* @param natives Array of natives to add. The last entry must have NULL members.
|
||||
|
@ -161,7 +161,7 @@ bool ShareSystem::RequestInterface(const char *iface_name,
|
||||
|
||||
void ShareSystem::AddNatives(IExtension *myself, const sp_nativeinfo_t *natives)
|
||||
{
|
||||
/* :TODO: implement */
|
||||
|
||||
}
|
||||
|
||||
void ShareSystem::DestroyIdentity(IdentityToken_t *identity)
|
||||
|
@ -432,7 +432,7 @@ uint32_t BaseContext::GetPubVarsNum()
|
||||
return ctx->plugin->info.pubvars_num;
|
||||
}
|
||||
|
||||
int BaseContext::BindNatives(sp_nativeinfo_t *natives, unsigned int num, int overwrite)
|
||||
int BaseContext::BindNatives(const sp_nativeinfo_t *natives, unsigned int num, int overwrite)
|
||||
{
|
||||
uint32_t i, j, max;
|
||||
|
||||
@ -458,7 +458,7 @@ int BaseContext::BindNatives(sp_nativeinfo_t *natives, unsigned int num, int ove
|
||||
return SP_ERROR_NONE;
|
||||
}
|
||||
|
||||
int BaseContext::BindNative(sp_nativeinfo_t *native)
|
||||
int BaseContext::BindNative(const sp_nativeinfo_t *native)
|
||||
{
|
||||
uint32_t index;
|
||||
int err;
|
||||
|
@ -38,8 +38,8 @@ namespace SourcePawn
|
||||
virtual int PushCellArray(cell_t *local_addr, cell_t **phys_addr, cell_t array[], unsigned int numcells);
|
||||
virtual int PushString(cell_t *local_addr, char **phys_addr, const char *string);
|
||||
virtual int PushCellsFromArray(cell_t array[], unsigned int numcells);
|
||||
virtual int BindNatives(sp_nativeinfo_t *natives, unsigned int num, int overwrite);
|
||||
virtual int BindNative(sp_nativeinfo_t *native);
|
||||
virtual int BindNatives(const sp_nativeinfo_t *natives, unsigned int num, int overwrite);
|
||||
virtual int BindNative(const sp_nativeinfo_t *native);
|
||||
virtual int BindNativeToAny(SPVM_NATIVE_FUNC native);
|
||||
virtual int Execute(funcid_t funcid, cell_t *result);
|
||||
virtual void ThrowNativeErrorEx(int error, const char *msg, ...);
|
||||
|
@ -294,7 +294,7 @@ namespace SourcePawn
|
||||
* @param num Number of natives in array.
|
||||
* @param overwrite Toggles overwrite.
|
||||
*/
|
||||
virtual int BindNatives(sp_nativeinfo_t *natives, unsigned int num, int overwrite) =0;
|
||||
virtual int BindNatives(const sp_nativeinfo_t *natives, unsigned int num, int overwrite) =0;
|
||||
|
||||
/**
|
||||
* @brief Binds a single native. Overwrites any existing bind.
|
||||
@ -303,7 +303,7 @@ namespace SourcePawn
|
||||
*
|
||||
* @param native Pointer to native.
|
||||
*/
|
||||
virtual int BindNative(sp_nativeinfo_t *native) =0;
|
||||
virtual int BindNative(const sp_nativeinfo_t *native) =0;
|
||||
|
||||
/**
|
||||
* @brief Binds a single native to any non-registered native.
|
||||
|
Loading…
Reference in New Issue
Block a user