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

Method GetTypeInfoOfLocalVar

sdk/angelscript/source/as_scriptfunction.cpp:1020–1031  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

1018
1019// internal
1020asCTypeInfo *asCScriptFunction::GetTypeInfoOfLocalVar(short varOffset)
1021{
1022 asASSERT( scriptData );
1023
1024 for( asUINT n = 0; n < scriptData->variables.GetLength(); n++ )
1025 {
1026 if (scriptData->variables[n]->stackOffset == varOffset)
1027 return scriptData->variables[n]->type.GetTypeInfo();
1028 }
1029
1030 return 0;
1031}
1032
1033// internal
1034void asCScriptFunction::ComputeSignatureId()

Callers 2

TranslateFunctionMethod · 0.80
WriteByteCodeMethod · 0.80

Calls 2

GetTypeInfoMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected