MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetVarDecl

Method GetVarDecl

sdk/angelscript/source/as_scriptfunction.cpp:989–999  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

987
988// interface
989const char *asCScriptFunction::GetVarDecl(asUINT index, bool includeNamespace) const
990{
991 if( scriptData == 0 || index >= scriptData->variables.GetLength() )
992 return 0;
993
994 asCString *tempString = &asCThreadManager::GetLocalData()->string;
995 *tempString = scriptData->variables[index]->type.Format(nameSpace, includeNamespace);
996 *tempString += " " + scriptData->variables[index]->name;
997
998 return tempString->AddressOf();
999}
1000
1001// internal
1002void asCScriptFunction::AddVariable(const asCString &in_name, const asCDataType &in_type, int in_stackOffset, bool in_onHeap)

Callers 2

GetVarDeclarationMethod · 0.80
ListLocalVariablesMethod · 0.80

Calls 3

GetLengthMethod · 0.45
FormatMethod · 0.45
AddressOfMethod · 0.45

Tested by

no test coverage detected