Hello,
I want register function
void StringUtils::removeSections( std::string* result, const std::string& html, const std::string& startStr, const std::string& endStr, bool withTags )
as script global function:
r = engine->RegisterGlobalFunction("void removeSections(string@, const string& in, const string& in, const string& in, bool)", asFUNCTION(StringUtils::removeSections), asCALL_CDECL); assert( r >= 0 );
and use it in script in that way:
string strToRet;
removeSections(@strToRet, str, "<--", "-->", true);
print(strToRet + "\n");
But as i undestrund, to use "string@" the string must be the ref type. So I am confused, how make string Ref and Value type at the same time.