I'm am writing an AngelScript Intelli-sense for my application, and it would be really nice if I could set a flag in the engine to have the parameters of functions and methods be remembered and returned with the asIScriptFunction::GetDeclaration function. So, if I call:
engine->RegisterObjectMethod("Matrix", "void SetSize(int nRows, int nCols)",
asMETHODPR(Matrix, SetSize, (int,int), void), asCALL_THISCALL);
Then making the following call on a pointer to that function:
func->GetDeclaration(true,false);
would return the following string:
"void Matrix::SetSize(int nRows, int nCols)"
Anyway, that would be very convenient for me. I think the only way for me to presently get this functionality would be to save the declaration string I use in the function's UserData and access it instead of calling GetDeclaration, correct?
Thanks!