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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user