Return type of foreign functions and methods should be changed from Type* to void.
The only communication channels between foreign code and the VM are registers and exceptions, and return values from foreign code are discarded there is no point in requiring to have every C++ function callable by viua end with return nullptr;.
Return type of foreign functions and methods should be changed from
Type*
tovoid
.The only communication channels between foreign code and the VM are registers and exceptions, and return values from foreign code are discarded there is no point in requiring to have every C++ function callable by viua end with
return nullptr;
.