fixed some build issues from last commit
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401389
This commit is contained in:
parent
f145178fc0
commit
97196e70be
@ -1328,7 +1328,6 @@ bool CPluginManager::RunSecondPass(CPlugin *pPlugin, char *error, size_t maxleng
|
||||
void CPluginManager::AddCoreNativesToPlugin(CPlugin *pPlugin)
|
||||
{
|
||||
IPluginContext *pContext = pPlugin->GetBaseContext();
|
||||
sp_context_t *ctx = pContext->GetContext();
|
||||
|
||||
|
||||
uint32_t natives = pContext->GetNativesNum();
|
||||
|
@ -642,7 +642,7 @@ int BaseContext::BindNative(const sp_nativeinfo_t *native)
|
||||
return SP_ERROR_NONE;
|
||||
}
|
||||
|
||||
int BaseContext::BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC native)
|
||||
int BaseContext::BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC func)
|
||||
{
|
||||
int err;
|
||||
sp_native_t *native;
|
||||
@ -652,7 +652,7 @@ int BaseContext::BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC native)
|
||||
return err;
|
||||
}
|
||||
|
||||
ctx->natives[index].pfn = native;
|
||||
ctx->natives[index].pfn = func;
|
||||
ctx->natives[index].status = SP_NATIVE_BOUND;
|
||||
|
||||
return SP_ERROR_NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user