added api calls needed by core
--HG-- branch : refac-jit extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/refac-jit%402375
This commit is contained in:
@@ -759,3 +759,13 @@ int DebugInfo::LookupLine(ucell_t addr, uint32_t *line)
|
||||
}
|
||||
|
||||
#undef USHR
|
||||
|
||||
int BaseContext::GetLastNativeError()
|
||||
{
|
||||
return m_ctx.n_err;
|
||||
}
|
||||
|
||||
cell_t *BaseContext::GetLocalParams()
|
||||
{
|
||||
return (cell_t *)(m_pPlugin->memory + m_ctx.frm + (2 * sizeof(cell_t)));
|
||||
}
|
||||
|
||||
@@ -88,6 +88,8 @@ public: //IPluginContext
|
||||
int BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC native);
|
||||
int Execute(IPluginFunction *function, const cell_t *params, unsigned int num_params, cell_t *result);
|
||||
IPluginRuntime *GetRuntime();
|
||||
int GetLastNativeError();
|
||||
cell_t *GetLocalParams();
|
||||
public:
|
||||
bool IsInExec();
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user