dynamic native providers can now be unloaded safely

fixed an api naming typo :(

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40611
This commit is contained in:
David Anderson
2007-03-12 20:40:30 +00:00
parent 8e4a59a4e0
commit 21ed05048f
5 changed files with 188 additions and 30 deletions
+1 -1
View File
@@ -2229,7 +2229,7 @@ rewind:
return (SPVM_NATIVE_FUNC)jw.outbase;
}
void JITX86::DestroyFakenative(SPVM_NATIVE_FUNC func)
void JITX86::DestroyFakeNative(SPVM_NATIVE_FUNC func)
{
engine->ExecFree((void *)func);
}
+1 -1
View File
@@ -99,7 +99,7 @@ public:
const char *GetVersionString();
const char *GetCPUOptimizations();
SPVM_NATIVE_FUNC CreateFakeNative(SPVM_FAKENATIVE_FUNC callback, void *pData);
void DestroyFakenative(SPVM_NATIVE_FUNC func);
void DestroyFakeNative(SPVM_NATIVE_FUNC func);
};
cell_t NativeCallback(sp_context_t *ctx, ucell_t native_idx, cell_t *params);