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

Method GetVarName

src/server/angelscript/angelscript/source/as_context.cpp:5440–5448  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

5438
5439// interface
5440const char *asCContext::GetVarName(asUINT varIndex, asUINT stackLevel)
5441{
5442 asIScriptFunction *func = GetFunction(stackLevel);
5443 if( func == 0 ) return 0;
5444
5445 const char *name = 0;
5446 int r = func->GetVar(varIndex, &name);
5447 return r >= 0 ? name : 0;
5448}
5449
5450// interface
5451const char *asCContext::GetVarDeclaration(asUINT varIndex, asUINT stackLevel, bool includeNamespace)

Callers 1

PrintValueMethod · 0.80

Calls 1

GetVarMethod · 0.80

Tested by

no test coverage detected