I have a function like this:
asIScriptObject* ComponentScripted::getProperty(const std::string &key) const
and I'm registering it like this:
r = engine->RegisterObjectMethod(strComponent, "?& get(const string &in) const", asMETHODPR(ComponentScripted,getProperty,(const std::string&) const,asIScriptObject*), asCALL_THISCALL); assert( r >= 0 );
However, it doesn't seem like ?& is a valid return type. How would I return a asIScriptObject back to the script from c++?
Any help would be greatly appreciated. Thank you.
Edited by izackp, 23 January 2013 - 07:33 AM.