1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-04 17:43:45 +00:00

Updated so marshalInterface throws exception on 32 bit windows, because ellipses functions cannot be stdcall.

This commit is contained in:
Bryan Roe
2021-11-02 20:58:13 -07:00
parent 5e4d1b02e3
commit 443d9a222e
2 changed files with 2 additions and 1 deletions

View File

@@ -98,6 +98,7 @@ function marshalFunctions(obj, arr)
}
function marshalInterface(arr)
{
if (GM.PointerSize == 4) { throw ('Not supported on 32bit platforms, becuase ellipses function cannot be __stdcall'); }
var vtbl = GM.CreateVariable(arr.length * GM.PointerSize);
var obj = GM.CreatePointer();
vtbl.pointerBuffer().copy(obj.toBuffer());