Hey,
I am trying to register a global property that has a custom getter function.
I register it like this:engine->RegisterGlobalFunction("string get_resourceName() const property", asFunctionPtr(GetResourceName), asCALL_CDECL);
The GetResourceName function exists and also the string type is registered (I am sure because I have a global function above it that also uses the string type, and it works)
But when I run it then I get the following error:Failed in call to function 'RegisterGlobalFunction' with 'string get_resourceName() const property' (Code: asINVALID_DECLARATION, -10)
What could the problem here be?