Merge pull request #285 from alliedmodders/frames

Implement a new stack and error handling model for the SourcePawn VM.
This commit is contained in:
David Anderson
2015-03-04 23:45:59 -08:00
51 changed files with 2085 additions and 1766 deletions
+1 -8
View File
@@ -290,8 +290,7 @@ DataStatus DecodeValveParam(IPluginContext *pContext,
case Valve_Vector:
{
cell_t *addr;
int err;
err = pContext->LocalToPhysAddr(param, &addr);
pContext->LocalToPhysAddr(param, &addr);
unsigned char *mem = (unsigned char *)buffer;
if (data->type == PassType_Basic)
@@ -317,12 +316,6 @@ DataStatus DecodeValveParam(IPluginContext *pContext,
}
}
if (err != SP_ERROR_NONE)
{
pContext->ThrowNativeErrorEx(err, "Could not read plugin data");
return Data_Fail;
}
/* Use placement new to initialize the object cleanly
* This has no destructor so we don't need to do
* DestroyValveParam() or something :]