rewritten PushStringEx in Forward and Function systems
fixed PushCellByRef and PushFloatByRef in the varargs case where it wouldn't set the pushed type fixed the BindNatives functions not setting the BOUND flag thus making the JIT not exec the natives done the rest of tests with forwards, only left to do string varargs --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40197
This commit is contained in:
@@ -374,6 +374,7 @@ int BaseContext::BindNative(sp_nativeinfo_t *native)
|
||||
}
|
||||
|
||||
ctx->natives[index].pfn = native->func;
|
||||
ctx->natives[index].status = SP_NATIVE_BOUND;
|
||||
|
||||
return SP_ERROR_NONE;
|
||||
}
|
||||
@@ -389,6 +390,7 @@ int BaseContext::BindNativeToAny(SPVM_NATIVE_FUNC native)
|
||||
if (ctx->natives[i].status == SP_NATIVE_UNBOUND)
|
||||
{
|
||||
ctx->natives[i].pfn = native;
|
||||
ctx->natives[i].status = SP_NATIVE_BOUND;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user