I tried to upgrade my code to the SVN trunk version of AngelScript and my previously working code is now throwing errors during type registration.
When I try to register the direction() member function of my ray() class using this call:
Engine->RegisterObjectMethod("ray", "float3 direction() const", asMETHODPR(ray, direction, (void) const, float3), asCALL_THISCALL);
I get this error message:
(0, 0) : ERR : Failed in call to function 'RegisterObjectMethod' with 'ray' and 'float3 direction() const' (Code: -7)
Any idea what's going on here? The code was working fine with an earlier version of AngelScript.