Quote:
Where ModifiedExecuteString is the version of ExecuteString that wraps the string in str = "int ExecuteString(int value){\n" + str + "\n; return 0;}";
I did this way, it failed to setArgument, since it report asINVALID_ARG error. line 850, as_context.cpp.
if( arg >= (unsigned)initialFunction->parameterTypes.GetLength() ){ status = asEXECUTION_ERROR; return asINVALID_ARG;}
I check the parameterTypes value, it said 0 parameter0, but the decl for the function is correct inside initialFunction.
:).