GAMEDEV.NET
Returning an object on the stack in a variadic function causes a crash
Hello! It seems that if a variadic function returns an object on the stack, it causes a crash when calling SetReturnObject in asIScriptGeneric object.If I'm not mistaking, the data for the variadic function on the stack is like this:[{return object address}, {arguments count}, {arguments values}]stackPointer in the asCGeneric object points to the beginning of args values, but receiving the address of returning object is calculated as (void*)*(asPWORD*)(stack Pointer - AS
0 التعليقات 0 المشاركات 24 مشاهدة