interface
| 939 | |
| 940 | // interface |
| 941 | int asCScriptFunction::GetVar(asUINT index, const char **out_name, int *out_typeId) const |
| 942 | { |
| 943 | if( scriptData == 0 ) |
| 944 | return asNOT_SUPPORTED; |
| 945 | if( index >= scriptData->variables.GetLength() ) |
| 946 | return asINVALID_ARG; |
| 947 | |
| 948 | if( out_name ) |
| 949 | *out_name = scriptData->variables[index]->name.AddressOf(); |
| 950 | if( out_typeId ) |
| 951 | *out_typeId = engine->GetTypeIdFromDataType(scriptData->variables[index]->type); |
| 952 | |
| 953 | return asSUCCESS; |
| 954 | } |
| 955 | |
| 956 | // interface |
| 957 | const char *asCScriptFunction::GetVarDecl(asUINT index, bool includeNamespace) const |
no test coverage detected