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

Method GetNextImportedFunctionId

sdk/angelscript/source/as_module.cpp:1225–1232  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

1223
1224// internal
1225int asCModule::GetNextImportedFunctionId()
1226{
1227 // TODO: multithread: This will break if one thread if freeing a module, while another is being compiled
1228 if( m_engine->freeImportedFunctionIdxs.GetLength() )
1229 return FUNC_IMPORTED | (asUINT)m_engine->freeImportedFunctionIdxs[m_engine->freeImportedFunctionIdxs.GetLength()-1];
1230
1231 return FUNC_IMPORTED | (asUINT)m_engine->importedFunctions.GetLength();
1232}
1233
1234#ifndef AS_NO_COMPILER
1235// internal

Callers 1

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected