Non-public function addresses are no longer accepted

Added a new VM function for pcode addresses (unused right now)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40349
This commit is contained in:
David Anderson
2007-01-25 04:36:48 +00:00
parent dbf105cc71
commit aeb512c444
5 changed files with 68 additions and 6 deletions
+10
View File
@@ -794,6 +794,16 @@ namespace SourcePawn
* @return String describing CPU specific optimizations.
*/
virtual const char *GetCPUOptimizations() =0;
/**
* @brief Given a context and a p-code address, returns the index of the function.
*
* @param ctx Context to search.
* @param code_addr Index into the p-code section.
* @param result Pointer to store result into.
* @return True if code index is valid, false otherwise.
*/
virtual bool FunctionPLookup(const sp_context_t *ctx, uint32_t code_addr, unsigned int *result) =0;
};
};