MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / GetVar

Method GetVar

src/server/angelscript/angelscript/source/as_scriptfunction.cpp:941–954  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

939
940// interface
941int 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
957const char *asCScriptFunction::GetVarDecl(asUINT index, bool includeNamespace) const

Callers 2

GetVarNameMethod · 0.80
GetVarTypeIdMethod · 0.80

Calls 3

GetTypeIdFromDataTypeMethod · 0.80
GetLengthMethod · 0.45
AddressOfMethod · 0.45

Tested by

no test coverage detected