new jit api versioning scheme for amb398

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401153
This commit is contained in:
David Anderson
2007-07-23 19:12:54 +00:00
parent b4ba442d3c
commit 172b3e8ab8
5 changed files with 84 additions and 23 deletions
+7 -2
View File
@@ -20,11 +20,16 @@
SourcePawn::ISourcePawnEngine *engine = NULL;
JITX86 g_jit;
EXPORTFUNC int GiveEnginePointer(SourcePawn::ISourcePawnEngine *engine_p)
EXPORTFUNC int GiveEnginePointer2(SourcePawn::ISourcePawnEngine *engine_p, unsigned int api_version)
{
engine = engine_p;
return 0;
if (api_version > SOURCEPAWN_ENGINE_API_VERSION)
{
return SP_ERROR_PARAM;
}
return SP_ERROR_NONE;
}
EXPORTFUNC unsigned int GetExportCount()